123456789_123456789_123456789_123456789_123456789_

Module: ActionDispatch::Flash::RequestMethods

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: actionpack/lib/action_dispatch/middleware/flash.rb

Instance Attribute Summary

Instance Attribute Details

#flash (rw)

Access the contents of the flash. Returns a FlashHash.

See ::ActionDispatch::Flash for example usage.

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 50

def flash
  flash = flash_hash
  return flash if flash
  self.flash = Flash::FlashHash.from_session_value(session["flash"])
end

#flash=(flash) (rw)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 56

def flash=(flash)
  set_header Flash::KEY, flash
end