From 9381d823a5758fc98cdb3d3e7abe0a8f6e7f606e Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 5 May 2014 08:14:06 -0300 Subject: Get rid of extra local var that does not add to the logic There are too many "action name" variables around the process method. --- actionpack/lib/abstract_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/abstract_controller') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index af5de815bb..de14b59f8e 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -125,9 +125,9 @@ module AbstractController # ==== Returns # * self def process(action, *args) - @_action_name = action_name = action.to_s + @_action_name = action.to_s - unless action_name = method_for_action(action_name) + unless action_name = method_for_action(@_action_name) raise ActionNotFound, "The action '#{action}' could not be found for #{self.class.name}" end -- cgit v1.2.3