From a977b2588e46ab5b9b8a1cb2a8f7482988c64486 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 15 Jan 2012 15:47:45 -0200 Subject: Remove method missing handling when action is not found, use action missing instead Do not create a method_missing method to handle not found actions, use the action_missing method provided by Rails instead. --- actionpack/lib/action_controller/metal/compatibility.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb index 835d1f7e35..96707b6587 100644 --- a/actionpack/lib/action_controller/metal/compatibility.rb +++ b/actionpack/lib/action_controller/metal/compatibility.rb @@ -17,13 +17,5 @@ module ActionController def render_to_body(options) super || " " end - - def _handle_method_missing - method_missing(@_action_name.to_sym) - end - - def method_for_action(action_name) - super || (respond_to?(:method_missing) && "_handle_method_missing") - end end end -- cgit v1.2.3