aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder/collection_association.rb
diff options
context:
space:
mode:
authorJames Coglan <jcoglan@gmail.com>2012-10-23 20:15:53 +0100
committerJames Coglan <jcoglan@gmail.com>2012-11-03 15:22:35 +0000
commit76a0237cf08f9cd81a2607dc179c8620bcf2781e (patch)
treeb535123f41359cf5f7430765df547727280cbf1b /activerecord/lib/active_record/associations/builder/collection_association.rb
parentc449462f45d342258a01313c0ff46279d268719d (diff)
downloadrails-76a0237cf08f9cd81a2607dc179c8620bcf2781e.tar.gz
rails-76a0237cf08f9cd81a2607dc179c8620bcf2781e.tar.bz2
rails-76a0237cf08f9cd81a2607dc179c8620bcf2781e.zip
Store FlashHashes in the session as plain hashes rather than custom objects 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.
Diffstat (limited to 'activerecord/lib/active_record/associations/builder/collection_association.rb')
0 files changed, 0 insertions, 0 deletions