aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-07-28 17:30:43 +0200
committerYves Senn <yves.senn@gmail.com>2014-07-28 17:30:43 +0200
commita09f0257580c240fc91347d60725cc5ac0d908c7 (patch)
tree95e4feb2cb0ae4caee5a972de574ab3df1888d93
parent171818c60ca2492a1d92feed3bfacd8d9523fc9a (diff)
downloadrails-a09f0257580c240fc91347d60725cc5ac0d908c7.tar.gz
rails-a09f0257580c240fc91347d60725cc5ac0d908c7.tar.bz2
rails-a09f0257580c240fc91347d60725cc5ac0d908c7.zip
docs, clarify attribute query methods on numeric columns. Closes #16246.
[ci skip]
-rw-r--r--activerecord/lib/active_record/base.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 64cc5b68cc..906f590c99 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -141,6 +141,7 @@ module ActiveRecord #:nodoc:
#
# In addition to the basic accessors, query methods are also automatically available on the Active Record object.
# Query methods allow you to test whether an attribute value is present.
+ # For numeric values, +persent+ is defined as non-zero.
#
# For example, an Active Record User with the <tt>name</tt> attribute has a <tt>name?</tt> method that you can call
# to determine whether the user has a name: