aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-12 17:55:39 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-12 17:57:54 +0100
commit8c2c60511beaad05a218e73c4918ab89fb1804f0 (patch)
tree761212dd7e1a8661f4ab30b814f2d3c4b2e86078 /activerecord/CHANGELOG.md
parent5c51cd0b2f7ac28825bdeb1f2f49f4647be12e52 (diff)
downloadrails-8c2c60511beaad05a218e73c4918ab89fb1804f0.tar.gz
rails-8c2c60511beaad05a218e73c4918ab89fb1804f0.tar.bz2
rails-8c2c60511beaad05a218e73c4918ab89fb1804f0.zip
Add bang versions of relation query methods.
The main reason for this is that I want to separate the code that does the mutating from the code that does the cloning.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 26f6093bc2..85cb3e0e20 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,12 @@
## Rails 4.0.0 (unreleased) ##
+* Added bang methods for mutating `ActiveRecord::Relation` objects.
+ For example, while `foo.where(:bar)` will return a new object
+ leaving `foo` unchanged, `foo.where!(:bar)` will mutate the foo
+ object
+
+ *Jon Leighton*
+
* Added `#find_by` and `#find_by!` to mirror the functionality
provided by dynamic finders in a way that allows dynamic input more
easily: