aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2015-07-02 08:08:46 -0700
committerclaudiob <claudiob@gmail.com>2015-07-02 08:08:46 -0700
commit352c8473ef7cc775489e25f503ffc03c452cc42e (patch)
tree6da681966b1a90ccece6e11f3263059ac18b7ad5 /actionpack
parent776e5991a9abf11818cb803e80976cea8b454c17 (diff)
downloadrails-352c8473ef7cc775489e25f503ffc03c452cc42e.tar.gz
rails-352c8473ef7cc775489e25f503ffc03c452cc42e.tar.bz2
rails-352c8473ef7cc775489e25f503ffc03c452cc42e.zip
[ci skip] Don't use TrueClass, FalseClass in docs
This sort of documentation style comes from 2009, probably due to the merging of merb (see https://github.com/rails/rails/commit/38b608ecab2441cd0c4e75bc08bdf57fcf85dd71#diff-017d9bc9b1d2bdae199b938d72c15488R120). Rails follows Ruby's convention to define which values are "truthy" or "falsey", so there is no need to specify that the returned value must strictly be a TrueClass or FalseClass. /cc @fxn
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/abstract_controller/base.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index 96d701dba5..ebd02bd9a1 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -148,9 +148,6 @@ module AbstractController
#
# ==== Parameters
# * <tt>action_name</tt> - The name of an action to be tested
- #
- # ==== Returns
- # * <tt>TrueClass</tt>, <tt>FalseClass</tt>
def available_action?(action_name)
_find_action_name(action_name).present?
end
@@ -171,9 +168,6 @@ module AbstractController
# ==== Parameters
# * <tt>name</tt> - The name of an action to be tested
#
- # ==== Returns
- # * <tt>TrueClass</tt>, <tt>FalseClass</tt>
- #
# :api: private
def action_method?(name)
self.class.action_methods.include?(name)