diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-27 19:46:36 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-27 19:49:09 -0700 |
commit | 307ec3db0fe26cbd1811d34a27e6637726ce23ce (patch) | |
tree | 93fee6a30b053e6ad1892ddbadf63a3b429431e3 /activerecord/CHANGELOG.md | |
parent | cd84b27ca45aa6f18f38202fdbc0ecc0ce9f98ef (diff) | |
download | rails-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/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 5dd5c53e9c..4a954c2cc6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,10 @@ +* Provide a more helpful error message when an unsupported class is passed to + `serialize` + + Fixes #18224 + + *Sean Griffin* + * Add bigint primary key support for MySQL. Example: |