Module: Outpost::Controller::Helpers
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/outpost/controller/helpers.rb
Instance Method Summary collapse
-
#notice(message) ⇒ Object
Public: Set the flash message, only for HTML requests.
Instance Method Details
#notice(message) ⇒ Object
Public: Set the flash message, only for HTML requests.
message - (String) The message to add to the flash.
Examples
notice("Success")
flash[:notice]
# => "Success"
Returns nothing.
19 20 21 |
# File 'lib/outpost/controller/helpers.rb', line 19 def notice() flash[:notice] = if request.format.html? end |