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 # # * context - Context to scope the execution of the validations. Default is nil. # If nil then the response of new_record? will determine the context. If new_record? - # returns true the the context will be :create, otherwise :update. Validation contexts + # returns true the context will be :create, otherwise :update. Validation contexts # for each validation can be defined using the :on option def valid?(context = nil) context ||= (new_record? ? :create : :update)