retrospring/app/controllers/modal_controller.rb

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

13 lines
314 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
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