diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 12:40:24 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 12:41:42 -0700 |
commit | e158ee50e64e2ae2460cd26be53039922f588300 (patch) | |
tree | 9e0e90d3108c854d8989c5a78ca7c0ae53125c72 /activerecord/test/cases/autosave_association_test.rb | |
parent | 393e19e508a08ede0f5037bccb984e3eb252d579 (diff) | |
download | rails-e158ee50e64e2ae2460cd26be53039922f588300.tar.gz rails-e158ee50e64e2ae2460cd26be53039922f588300.tar.bz2 rails-e158ee50e64e2ae2460cd26be53039922f588300.zip |
Use AS::JSON for (de)serializing cookies
Use the Active Support JSON encoder for cookie jars using the `:json` or
`:hybrid` serializer. This allows you to serialize custom Ruby objects into
cookies by defining the `#as_json` hook on such objects.
Fixes #16520.
Diffstat (limited to 'activerecord/test/cases/autosave_association_test.rb')
0 files changed, 0 insertions, 0 deletions