diff options
author | chrisfinne <chris.finne@gmail.com> | 2014-03-15 03:32:24 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-27 15:01:31 -0300 |
commit | 3a661794382c3b06cbb4d6dcc1859dd569cf8652 (patch) | |
tree | 95fe12c4d22e8225a31d19a54556a0b2b2f99a3e /activerecord/CHANGELOG.md | |
parent | eddcdb0f1de6e7b1b503a6df8d60cd6a145ce080 (diff) | |
download | rails-3a661794382c3b06cbb4d6dcc1859dd569cf8652.tar.gz rails-3a661794382c3b06cbb4d6dcc1859dd569cf8652.tar.bz2 rails-3a661794382c3b06cbb4d6dcc1859dd569cf8652.zip |
AR .persisted? throws SystemStackError for an unsaved model with a
custom primary_key that didn't save due to validation error
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 916d24aa03..b08f6ff38b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,10 @@ +* Fixed error where .persisted? throws SystemStackError for an unsaved model with a + custom primary key that didn't save due to validation error. + + Fixes #14393. + + *Chris Finne* + * Introduce `validate` as an alias for `valid?`. This is more intuitive when you want to run validations but don't care about the return value. |