diff options
author | James Coglan <jcoglan@gmail.com> | 2012-10-23 20:15:53 +0100 |
---|---|---|
committer | James Coglan <jcoglan@gmail.com> | 2012-11-09 11:55:18 +0000 |
commit | 654a2de7a9c6d58f98dc9d4596cbeba2e5caeca2 (patch) | |
tree | ec8f7bd1dab2adf2526df9d961b839f58068180a /actionpack/test/controller/render_js_test.rb | |
parent | c449462f45d342258a01313c0ff46279d268719d (diff) | |
download | rails-654a2de7a9c6d58f98dc9d4596cbeba2e5caeca2.tar.gz rails-654a2de7a9c6d58f98dc9d4596cbeba2e5caeca2.tar.bz2 rails-654a2de7a9c6d58f98dc9d4596cbeba2e5caeca2.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.
Fix session['flash'] deletion condition: it will never be empty?, it will either be nil or a hash with 'discard' and 'flashes' keys.
Diffstat (limited to 'actionpack/test/controller/render_js_test.rb')
0 files changed, 0 insertions, 0 deletions