Module: UltimateTurboModal::Helpers::StreamHelper
- Defined in:
- lib/ultimate_turbo_modal/helpers/stream_helper.rb
Instance Method Summary collapse
Instance Method Details
#modal(message) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ultimate_turbo_modal/helpers/stream_helper.rb', line 5 def modal() case .to_s.downcase.to_sym when :close, :hide turbo_stream_action_tag "modal", message: "hide" else raise ArgumentError, "Unknown modal message: #{}" end end |