aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-27 19:46:36 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-27 19:49:09 -0700
commit307ec3db0fe26cbd1811d34a27e6637726ce23ce (patch)
tree93fee6a30b053e6ad1892ddbadf63a3b429431e3 /activerecord/lib/rails
parentcd84b27ca45aa6f18f38202fdbc0ecc0ce9f98ef (diff)
downloadrails-307ec3db0fe26cbd1811d34a27e6637726ce23ce.tar.gz
rails-307ec3db0fe26cbd1811d34a27e6637726ce23ce.tar.bz2
rails-307ec3db0fe26cbd1811d34a27e6637726ce23ce.zip
Provide a better error message for unsupported classes in `serialize`
We only support classes which provide a no-args constructor to use as a default value. We can provide a more helpful error message if we catch this when `serialize` is called, rather than letting it error when you try to assign the attribute. Fixes #18224
Diffstat (limited to 'activerecord/lib/rails')
0 files changed, 0 insertions, 0 deletions