Permalink
Browse files

match method signature of the superclass

  • Loading branch information...
1 parent 8e19a5d commit 6a283d598f243197375266c8b981b66f1b5f10c5 @tenderlove tenderlove committed Jun 30, 2011
@@ -58,10 +58,10 @@ def initialize(association)
alias_method :new, :build
- def respond_to?(*args)
+ def respond_to?(name, include_private = false)
super ||
- (load_target && target.respond_to?(*args)) ||
- @association.klass.respond_to?(*args)
+ (load_target && target.respond_to?(name, include_private)) ||
+ @association.klass.respond_to?(name, include_private)
end
def method_missing(method, *args, &block)
@@ -61,7 +61,7 @@ def method_missing(method_id, *args, &block)
end
end
- def respond_to?(*args)
+ def respond_to?(name, include_private = false)
self.class.define_attribute_methods unless self.class.attribute_methods_generated?
super
end

0 comments on commit 6a283d5

Please sign in to comment.