aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/spawn_methods.rb
diff options
context:
space:
mode:
authorOscar Del Ben <oscar@oscardelben.com>2012-07-17 16:21:22 -0700
committerOscar Del Ben <oscar@oscardelben.com>2012-07-17 16:21:22 -0700
commit27014bbf513ebb2dde143ebd745283496e7db558 (patch)
tree0f6640a4da9302c1ab84c204d8a0cee500de80d0 /activerecord/lib/active_record/relation/spawn_methods.rb
parent21123d3a7d4f87c9e61462248e3e5c7c7af1438f (diff)
downloadrails-27014bbf513ebb2dde143ebd745283496e7db558.tar.gz
rails-27014bbf513ebb2dde143ebd745283496e7db558.tar.bz2
rails-27014bbf513ebb2dde143ebd745283496e7db558.zip
Add nodocs to delegation module and docs for merge!
Diffstat (limited to 'activerecord/lib/active_record/relation/spawn_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/spawn_methods.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation/spawn_methods.rb b/activerecord/lib/active_record/relation/spawn_methods.rb
index 80d087a9ea..d21f02cd5f 100644
--- a/activerecord/lib/active_record/relation/spawn_methods.rb
+++ b/activerecord/lib/active_record/relation/spawn_methods.rb
@@ -34,6 +34,7 @@ module ActiveRecord
end
end
+ # Like #merge, but applies changes in place.
def merge!(other)
klass = other.is_a?(Hash) ? Relation::HashMerger : Relation::Merger
klass.new(self, other).merge