aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/flash_hash_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Migrate old flash behaviourSamuel Cochran2015-01-301-6/+7
|
* Discard from flash before persisting in sessionSamuel Cochran2015-01-291-7/+9
|
* Make FlashHash#key? work with symbol and stringRafael Mendonça França2014-11-111-0/+9
| | | | Closes #17586
* Convert FlashHash in a Hash with indifferent accessGuillermo Iguaran2014-02-111-0/+10
|
* Store FlashHashes in the session as plain hashes rather than custom objects ↵James Coglan2012-11-091-0/+21
| | | | | | | | | | | | | | | | | | | | with unstable class names and instance variables. Refactor FlashHash to take values for its ivars in the constructor, to pretty up FlashHash.from_session_value. Remove stale comment on FlashHash: it is no longer Marshaled in the session so we can change its implementation. Remove blank lines I introduced in controller/test_case.rb. Unit tests for FlashHash#to_session_value. Put in a compatibility layer to accept FlashHash serializations from Rails 3.0+. Test that Rails 3.2 session flashes are correctly converted to the new format. Remove code path for processing Rails 3.0 FlashHashes since they can no longer deserialize. Fix session['flash'] deletion condition: it will never be empty?, it will either be nil or a hash with 'discard' and 'flashes' keys.
* mutations on the underlying hash should also mutate the discard setAaron Patterson2011-12-281-0/+19
|
* mutations can't be done without the consent of our proxy object. ThisAaron Patterson2011-12-281-0/+62
| | | | is one benefit of choosing composition over inheritance.
* many args does not make sense with the current implementation because of how ↵Aaron Patterson2011-04-061-10/+0
| | | | `use` works
* getting the flash hash under testAaron Patterson2011-04-061-0/+100