diff options
author | Joost Baaij <joost@spacebabies.nl> | 2010-08-25 19:51:20 +0200 |
---|---|---|
committer | Joost Baaij <joost@spacebabies.nl> | 2010-08-25 19:51:20 +0200 |
commit | e9eaae1a051039638dee1bce68cc835c1377a9ce (patch) | |
tree | b5652d0dcfc99e00290114bd4c4dc97a24b39629 | |
parent | eaeda503e89ac7f182d9a43a1917f5cc852cdb14 (diff) | |
download | rails-e9eaae1a051039638dee1bce68cc835c1377a9ce.tar.gz rails-e9eaae1a051039638dee1bce68cc835c1377a9ce.tar.bz2 rails-e9eaae1a051039638dee1bce68cc835c1377a9ce.zip |
fixed capitalization
-rw-r--r-- | actionpack/lib/abstract_controller/base.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index 76e86f8e24..85270d84d8 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -6,8 +6,8 @@ module AbstractController class Error < StandardError; end class ActionNotFound < StandardError; end - # AbstractController is a low-level API. Nobody should be using it directly, - # and subclasses of AbstractController (like ActionController::Base) are + # <tt>AbstractController::Base</tt> is a low-level API. Nobody should be + # using it directly, and subclasses (like ActionController::Base) are # expected to provide their own +render+ method, since rendering means # different things depending on the context. class Base @@ -40,12 +40,12 @@ module AbstractController controller.public_instance_methods(true) end - # The list of hidden actions to an empty Array. Defaults to an - # empty Array. This can be modified by other modules or subclasses + # The list of hidden actions to an empty array. Defaults to an + # empty array. This can be modified by other modules or subclasses # to specify particular actions as hidden. # # ==== Returns - # * <tt>Array</tt> - An array of method names that should not be considered actions. + # * <tt>array</tt> - An array of method names that should not be considered actions. def hidden_actions [] end @@ -57,7 +57,7 @@ module AbstractController # itself. Finally, #hidden_actions are removed. # # ==== Returns - # * <tt>Array</tt> - A list of all methods that should be considered actions. + # * <tt>array</tt> - A list of all methods that should be considered actions. def action_methods @action_methods ||= begin # All public instance methods of this class, including ancestors @@ -86,7 +86,7 @@ module AbstractController # controller_name. # # ==== Returns - # * <tt>String</tt> + # * <tt>string</tt> def controller_path @controller_path ||= name.sub(/Controller$/, '').underscore unless anonymous? end @@ -185,7 +185,7 @@ module AbstractController # * <tt>action_name</tt> - An action name to find a method name for # # ==== Returns - # * <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. def method_for_action(action_name) if action_method?(action_name) then action_name |