lib/active_model/validator.rb in activemodel-3.0.1 vs lib/active_model/validator.rb in activemodel-3.0.2

- old
+ new

@@ -5,11 +5,11 @@ module ActiveModel #:nodoc: # == Active Model Validator # # A simple base class that can be used along with - # +ActiveModel::Validations::ClassMethods.validates_with+ + # ActiveModel::Validations::ClassMethods.validates_with # # class Person # include ActiveModel::Validations # validates_with MyValidator # end @@ -40,10 +40,10 @@ # record # => The person instance being validated # options # => Any non-standard options passed to validates_with # end # end # - # To cause a validation error, you must add to the <tt>record<tt>'s errors directly + # To cause a validation error, you must add to the <tt>record</tt>'s errors directly # from within the validators message # # class MyValidator < ActiveModel::Validator # def validate(record) # record.errors[:base] << "This is some custom error message"