提交 9381d823 编写于 作者: C Carlos Antonio da Silva

Get rid of extra local var that does not add to the logic

There are too many "action name" variables around the process method.
上级 f2003834
......@@ -125,9 +125,9 @@ def method_added(name)
# ==== Returns
# * <tt>self</tt>
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册