Module: Alert::AlertHelper

Defined in:
app/helpers/alert/alert_helper.rb

Instance Method Summary collapse

Instance Method Details

#alert_message(**options) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/helpers/alert/alert_helper.rb', line 5

def alert_message(**options)
  if block_given?
    render(Alert::AlertComponent.new(**options)) do
      yield
    end
  else
    render(Alert::AlertComponent.new(**options))
  end
end