提交 2a816db4 编写于 作者: N Nicholas Rowe 提交者: Mani Tadayon

Typo: fixing the the

上级 2394ad69
......@@ -62,7 +62,7 @@ def save!(options={})
#
# * <tt>context</tt> - Context to scope the execution of the validations. Default is <tt>nil</tt>.
# If <tt>nil</tt> then the response of <tt>new_record?</tt> will determine the context. If <tt>new_record?</tt>
# returns true the the context will be <tt>:create</tt>, otherwise <tt>:update</tt>. Validation contexts
# returns true the context will be <tt>:create</tt>, otherwise <tt>:update</tt>. Validation contexts
# for each validation can be defined using the <tt>:on</tt> option
def valid?(context = nil)
context ||= (new_record? ? :create : :update)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册