mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Typo: fixing the the
This commit is contained in:
committed by
Mani Tadayon
parent
2394ad69a4
commit
2a816db446
@@ -62,7 +62,7 @@ module ActiveRecord
|
||||
#
|
||||
# * <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)
|
||||
|
||||
Reference in New Issue
Block a user