retrospring/app/controllers/modal_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
373 B
Ruby
Raw Normal View History

2023-10-23 00:45:40 +02:00
# frozen_string_literal: true
class ModalController < ApplicationController
include ActionView::Helpers::TagHelper
include Turbo::FramesHelper
skip_before_action :find_active_announcements, :banned?
def close
return redirect_to root_path unless turbo_frame_request?
2023-10-24 01:11:04 +02:00
render inline: turbo_frame_tag("modal") # rubocop:disable Rails/RenderInline
2023-10-23 00:45:40 +02:00
end
end