mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
14 lines
373 B
Ruby
14 lines
373 B
Ruby
# 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?
|
|
|
|
render inline: turbo_frame_tag("modal") # rubocop:disable Rails/RenderInline
|
|
end
|
|
end
|