diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-17 02:59:42 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-17 03:00:56 +0530 |
commit | cd90dcb1bde5c411a55bcec97597a8fe22b56a5d (patch) | |
tree | 41d3c22a8c81d8bdbb4d79749aea495e1bc0a7aa /activerecord/lib/active_record/named_scope.rb | |
parent | e9a1dbe79a6610793a71af227aaf64ff55554cad (diff) | |
download | rails-cd90dcb1bde5c411a55bcec97597a8fe22b56a5d.tar.gz rails-cd90dcb1bde5c411a55bcec97597a8fe22b56a5d.tar.bz2 rails-cd90dcb1bde5c411a55bcec97597a8fe22b56a5d.zip |
Rename Model.active_relation to Model.unscoped
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 531419fd8e..90fd700437 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -29,7 +29,7 @@ module ActiveRecord current_scope = current_scoped_methods unless current_scope - active_relation.spawn + unscoped.spawn else construct_finder_arel({}, current_scoped_methods) end |