aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorNicholas Rowe <nixterrimus@gmail.com>2011-02-19 23:46:30 -0500
committerNicholas Rowe <nixterrimus@gmail.com>2011-02-19 23:46:30 -0500
commit89b3bc480761ee7afd858ab4a78d5b79be3a267c (patch)
tree948dd96e946af273a703b55eaa1511dc4accc6bc /activerecord
parent6052929e881e12df9832411888451bf39938f571 (diff)
downloadrails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.tar.gz
rails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.tar.bz2
rails-89b3bc480761ee7afd858ab4a78d5b79be3a267c.zip
Typo: fixing the the
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/validations.rb2
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)