aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2014-12-23 17:42:29 -0700
committerSean Griffin <sean@seantheprogrammer.com>2014-12-23 17:42:29 -0700
commit5a2d85be4dc69b7570dd5eb1daba522cb2376f1f (patch)
tree511086803d8ca7555706e26b54602aa4f1098e75 /activerecord
parent6dd4c04b7135cf8f0b877a5d52fe8e9e0ba9a777 (diff)
parentc9d86d4148783df4885a9fa4f623fdf6c3079282 (diff)
downloadrails-5a2d85be4dc69b7570dd5eb1daba522cb2376f1f.tar.gz
rails-5a2d85be4dc69b7570dd5eb1daba522cb2376f1f.tar.bz2
rails-5a2d85be4dc69b7570dd5eb1daba522cb2376f1f.zip
Merge pull request #18159 from M7/docs-active_record-update_query_method_docs_with_full_description
Describe full behaviour of Active Record's attribute query methods
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index f978fbd0a4..954d22f1d5 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -141,7 +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, present is defined as non-zero.
+ # Additionally, when dealing with numeric values, a query method will return false if the value is 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: