diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-05-05 08:14:06 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-05-05 08:14:07 -0300 |
commit | 9381d823a5758fc98cdb3d3e7abe0a8f6e7f606e (patch) | |
tree | a3d43ac9fe6acd8f2be199ca99782d8c13490517 /actionpack/lib | |
parent | f2003834c85db173ea436273b63315543b82f896 (diff) | |
download | rails-9381d823a5758fc98cdb3d3e7abe0a8f6e7f606e.tar.gz rails-9381d823a5758fc98cdb3d3e7abe0a8f6e7f606e.tar.bz2 rails-9381d823a5758fc98cdb3d3e7abe0a8f6e7f606e.zip |
Get rid of extra local var that does not add to the logic
There are too many "action name" variables around the process method.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/abstract_controller/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 # * <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 |