diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2018-10-30 12:52:23 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2018-10-30 12:52:23 -0600 |
commit | b63701e272f3dc932ba7a20127f6dc82b567cfb4 (patch) | |
tree | 1eb65b792ad7835c67449c81cb6c4f1b7b4be1d3 /activerecord/CHANGELOG.md | |
parent | 9a18a10e1cf6dd971d170f3684717c2ffe687776 (diff) | |
download | rails-b63701e272f3dc932ba7a20127f6dc82b567cfb4.tar.gz rails-b63701e272f3dc932ba7a20127f6dc82b567cfb4.tar.bz2 rails-b63701e272f3dc932ba7a20127f6dc82b567cfb4.zip |
`update_columns` raises if the column is unknown
Previosly, `update_columns` would just take whatever keys you gave it
and tried to run the update query. Most likely this would result in an
error from the database. However, if the column actually did exist, but
was in `ignored_columns`, this would result in the method returning
successfully when it should have raised, and an attribute that should
not exist written to `@attributes`.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d4f6e6ae48..9d80bbe51f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,8 @@ +* `update_columns` now correctly raises `ActiveModel::MissingAttributeError` + if the attribute does not exist. + + *Sean Griffin* + * Add support for hash and url configs in database hash of `ActiveRecord::Base.connected_to`. ```` |