Class: ActionController::Flash::FlashHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/rails2_to_3_flash_serialization.rb,
lib/rails3_to_2_flash_serialization.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a, &b) ⇒ Object



8
9
# File 'lib/rails2_to_3_flash_serialization.rb', line 8

def method_missing(m, *a, &b)
end

Instance Method Details

#store(session, key = "legacy_flash") ⇒ Object



18
19
20
21
# File 'lib/rails3_to_2_flash_serialization.rb', line 18

def store(session, key = "legacy_flash")
  return if self.empty?
  session[key] = self
end