mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-26 18:03:02 +01:00
12 lines
314 B
Ruby
12 lines
314 B
Ruby
# 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?
|
|
|
|
render inline: turbo_frame_tag("modal") # rubocop:disable Rails/RenderInline
|
|
end
|
|
end
|