aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-27 16:51:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-27 16:51:12 -0700
commit133742d185c2abf0fb443b694a305a4b68259bcb (patch)
tree3693d2cf0b0419e0835c4b6de1cf04ff0205bdfc /activerecord/lib
parentb1f5e90839a760c926403046ef43dd60af9fcf07 (diff)
downloadrails-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.rb9
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