diff options
author | Oscar Del Ben <oscar@oscardelben.com> | 2012-07-17 16:21:22 -0700 |
---|---|---|
committer | Oscar Del Ben <oscar@oscardelben.com> | 2012-07-17 16:21:22 -0700 |
commit | 27014bbf513ebb2dde143ebd745283496e7db558 (patch) | |
tree | 0f6640a4da9302c1ab84c204d8a0cee500de80d0 /activerecord/lib/active_record/relation/spawn_methods.rb | |
parent | 21123d3a7d4f87c9e61462248e3e5c7c7af1438f (diff) | |
download | rails-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.rb | 1 |
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 |