提交 5a2d85be 编写于 作者: S Sean Griffin

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
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册