Permalink
Browse files

extract deprecated code

  • Loading branch information...
1 parent 8f50bbe commit be7c6ee56d40b2205cb071b8d616191eac292ce8 @jonleighton jonleighton committed May 11, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -82,14 +82,7 @@ def respond_to?(name, include_private = false)
end
def method_missing(method, *args, &block)
- match = DynamicMatchers::Method.match(self, method)
- if match && match.is_a?(DynamicMatchers::Instantiator)
- super do |record|
- proxy_association.add_to_target(record)
- yield record if block_given?
- end
-
- elsif target.respond_to?(method) || (!proxy_association.klass.respond_to?(method) && Class.respond_to?(method))
+ if target.respond_to?(method) || (!proxy_association.klass.respond_to?(method) && Class.respond_to?(method))
if load_target
if target.respond_to?(method)
target.send(method, *args, &block)

0 comments on commit be7c6ee

Please sign in to comment.