module ActionController::Flash::InstanceMethods

Public Instance Methods

flash() click to toggle source

Access the contents of the flash. Use flash["notice"] to read a notice you put there or flash["notice"] = "hello" to put a new one.

# File lib/rails3_to_2_flash_serialization.rb, line 27
def flash #:doc:
  if !defined?(@_flash)
    @_flash = session["legacy_flash"] || FlashHash.new
    @_flash.sweep
  end

  @_flash
end