Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove 'then' from conditional statement

  • Loading branch information...
commit ecee64192fd9d3139187fb2c977bed82c49c4877 1 parent ca618d4
@NARKOZ NARKOZ authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 actionpack/lib/abstract_controller/base.rb
View
6 actionpack/lib/abstract_controller/base.rb
@@ -217,8 +217,10 @@ def _handle_action_missing(*args)
# * <tt>string</tt> - The name of the method that handles the action
# * <tt>nil</tt> - No method name could be found. Raise ActionNotFound.
def method_for_action(action_name)
- if action_method?(action_name) then action_name
- elsif respond_to?(:action_missing, true) then "_handle_action_missing"
+ if action_method?(action_name)
+ action_name
+ elsif respond_to?(:action_missing, true)
+ "_handle_action_missing"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.