diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-27 16:51:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-27 16:51:12 -0700 |
commit | 133742d185c2abf0fb443b694a305a4b68259bcb (patch) | |
tree | 3693d2cf0b0419e0835c4b6de1cf04ff0205bdfc /activerecord/lib | |
parent | b1f5e90839a760c926403046ef43dd60af9fcf07 (diff) | |
download | rails-133742d185c2abf0fb443b694a305a4b68259bcb.tar.gz rails-133742d185c2abf0fb443b694a305a4b68259bcb.tar.bz2 rails-133742d185c2abf0fb443b694a305a4b68259bcb.zip |
@klass also uses DynamicFinderMatch, so no need for it on the relation
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 478f1e8ef1..dfc66cdd09 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -358,15 +358,6 @@ module ActiveRecord scoping { @klass.send(method, *args, &block) } elsif arel.respond_to?(method) arel.send(method, *args, &block) - elsif match = DynamicFinderMatch.match(method) - attributes = match.attribute_names - super unless @klass.send(:all_attributes_exists?, attributes) - - if match.finder? - find_by_attributes(match, attributes, *args) - elsif match.instantiator? - find_or_instantiator_by_attributes(match, attributes, *args, &block) - end else super end |