diff options
author | Nicholas Rowe <nixterrimus@gmail.com> | 2011-02-19 23:46:30 -0500 |
---|---|---|
committer | Mani Tadayon <bowsersenior@gmail.com> | 2011-02-21 13:44:19 -0800 |
commit | 2a816db446d4c3d3ec786827cdfd66f14b4975ba (patch) | |
tree | b6fef29fbb4408bd853bfd89b0242ac4e3904dad | |
parent | 2394ad69a4b5055a282ea978eed506ebef68cef9 (diff) | |
download | rails-2a816db446d4c3d3ec786827cdfd66f14b4975ba.tar.gz rails-2a816db446d4c3d3ec786827cdfd66f14b4975ba.tar.bz2 rails-2a816db446d4c3d3ec786827cdfd66f14b4975ba.zip |
Typo: fixing the the
-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) |