diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-10 08:51:11 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-10 13:29:00 -0800 |
commit | aad432a9e91d991218276b5945d43e9dcb247b63 (patch) | |
tree | 8f3282265a10a1ddd37b64387af96b81d51c9408 /activerecord/lib/active_record/named_scope.rb | |
parent | 4745b53bcda400cf2e8cb4f2c0bf068f6d13c0e5 (diff) | |
download | rails-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.rb | 2 |
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 |