Module: MerbHasFlash::ControllerExtension::InstanceMethods

Defined in:
lib/merb_has_flash/controller_extension.rb

Instance Method Summary collapse

Instance Method Details

#flash(refresh = false) ⇒ Object

:doc:



10
11
12
13
# File 'lib/merb_has_flash/controller_extension.rb', line 10

def flash(refresh = false) #:doc:
  session['flash'] = FlashHash.new unless refresh || session['flash'].is_a?(FlashHash)
  session['flash']
end