Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #7943 from NARKOZ/patch-4
remove 'then' from conditional statement
  • Loading branch information
jeremy committed Oct 14, 2012
2 parents ca618d4 + ecee641 commit 1974911
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions actionpack/lib/abstract_controller/base.rb
Expand Up @@ -217,8 +217,10 @@ def _handle_action_missing(*args)
# * <tt>string</tt> - The name of the method that handles the action # * <tt>string</tt> - The name of the method that handles the action
# * <tt>nil</tt> - No method name could be found. Raise ActionNotFound. # * <tt>nil</tt> - No method name could be found. Raise ActionNotFound.
def method_for_action(action_name) def method_for_action(action_name)
if action_method?(action_name) then action_name if action_method?(action_name)
elsif respond_to?(:action_missing, true) then "_handle_action_missing" action_name
elsif respond_to?(:action_missing, true)
"_handle_action_missing"
end end
end end
end end
Expand Down

0 comments on commit 1974911

Please sign in to comment.