Module: UltimateTurboModal::Helpers::ControllerHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ultimate_turbo_modal/helpers/controller_helper.rb
Instance Method Summary collapse
Instance Method Details
#inside_modal? ⇒ Boolean
7 8 9 |
# File 'lib/ultimate_turbo_modal/helpers/controller_helper.rb', line 7 def inside_modal? request.headers["Turbo-Frame"] == "modal" end |