aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-10 08:51:11 -0800
committerwycats <wycats@gmail.com>2010-03-10 13:29:00 -0800
commitaad432a9e91d991218276b5945d43e9dcb247b63 (patch)
tree8f3282265a10a1ddd37b64387af96b81d51c9408 /activerecord/lib/active_record/named_scope.rb
parent4745b53bcda400cf2e8cb4f2c0bf068f6d13c0e5 (diff)
downloadrails-aad432a9e91d991218276b5945d43e9dcb247b63.tar.gz
rails-aad432a9e91d991218276b5945d43e9dcb247b63.tar.bz2
rails-aad432a9e91d991218276b5945d43e9dcb247b63.zip
removing spawn from SpawnMethods
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index f1f56850ae..394e1587e1 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -26,7 +26,7 @@ module ActiveRecord
if options.present?
Scope.init(self, options, &block)
else
- current_scoped_methods ? unscoped.merge(current_scoped_methods) : unscoped.spawn
+ current_scoped_methods ? unscoped.merge(current_scoped_methods) : unscoped.clone
end
end