From 352c8473ef7cc775489e25f503ffc03c452cc42e Mon Sep 17 00:00:00 2001 From: claudiob Date: Thu, 2 Jul 2015 08:08:46 -0700 Subject: [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 --- actionpack/lib/abstract_controller/base.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'actionpack/lib/abstract_controller') 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 # * action_name - The name of an action to be tested - # - # ==== Returns - # * TrueClass, FalseClass def available_action?(action_name) _find_action_name(action_name).present? end @@ -171,9 +168,6 @@ module AbstractController # ==== Parameters # * name - The name of an action to be tested # - # ==== Returns - # * TrueClass, FalseClass - # # :api: private def action_method?(name) self.class.action_methods.include?(name) -- cgit v1.2.3