lib/action_controller/metal/compatibility.rb in actionpack-3.2.12 vs lib/action_controller/metal/compatibility.rb in actionpack-3.2.13.rc1
- old
+ new
@@ -56,9 +56,10 @@
" please use `action_missing` instead.", caller
method_missing(@_action_name.to_sym)
end
def method_for_action(action_name)
- super || (respond_to?(:method_missing) && "_handle_method_missing")
+ super || ((self.class.public_method_defined?(:method_missing) ||
+ self.class.protected_method_defined?(:method_missing)) && "_handle_method_missing")
end
end
end