diff options
author | Nicholas Rowe <nixterrimus@gmail.com> | 2011-02-19 23:46:30 -0500 |
---|---|---|
committer | Nicholas Rowe <nixterrimus@gmail.com> | 2011-02-19 23:46:30 -0500 |
commit | 89b3bc480761ee7afd858ab4a78d5b79be3a267c (patch) | |
tree | 948dd96e946af273a703b55eaa1511dc4accc6bc /activerecord/lib/active_record | |
parent | 6052929e881e12df9832411888451bf39938f571 (diff) | |
download | rails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.tar.gz rails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.tar.bz2 rails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.zip |
Typo: fixing the the
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index c192e02660..292de3ee61 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -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) |