diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-18 04:24:24 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-18 04:24:24 +0530 |
commit | 88de6b2de2606e141483ff90323c5f3ec0cfb298 (patch) | |
tree | d29af6f939afa75801753fa42307b5f0589d7b57 /activerecord/lib/active_record/associations | |
parent | c6850d8361bbf288cf3adefd087cb9a4bc9c97bc (diff) | |
download | rails-88de6b2de2606e141483ff90323c5f3ec0cfb298.tar.gz rails-88de6b2de2606e141483ff90323c5f3ec0cfb298.tar.bz2 rails-88de6b2de2606e141483ff90323c5f3ec0cfb298.zip |
Inherit named scope class Scope from Relation
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 64dd5cf629..e9402d3547 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -403,8 +403,6 @@ module ActiveRecord else super end - elsif @reflection.klass.scopes.include?(method) - @reflection.klass.scopes[method].call(self, *args) else with_scope(construct_scope) do if block_given? |