Skip to content

Commit

Permalink
Correct changelog for #42423 to be class method instead of instance
Browse files Browse the repository at this point in the history
Also added an example [ci skip]
  • Loading branch information
zzak committed Jun 10, 2021
1 parent 1987cbd commit 50dce5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion activerecord/CHANGELOG.md
@@ -1,4 +1,10 @@
* Add `ActiveRecord::Base#update!` that works like `ActiveRecord::Base#update` but raises exceptions.
* Add `ActiveRecord::Base.update!` that works like `ActiveRecord::Base.update` but raises exceptions.

This allows for the same behavior as the instance method `#update!` at a class level.

```ruby
Person.update!(:all, state: "confirmed")
```

*Dorian Marié*

Expand Down

0 comments on commit 50dce5d

Please sign in to comment.