Module: FlasheeHelper

Defined in:
lib/templates/flashee_helper.rb

Instance Method Summary collapse

Instance Method Details

#flashee_for(flash_type) ⇒ Object

Called by the ‘_flash_messages.html.erb` partial to drop-in the css class that matches the value of `:type` on the flash message.

Parameters:

flash_type

A symbol or string that is passed from the flash messages ‘type` attribute

Returns:

A string for the css class



12
13
# File 'lib/templates/flashee_helper.rb', line 12

def flashee_for flash_type
end