Module ActiveRecord::Validations
In: lib/active_record/validations/uniqueness.rb
lib/active_record/validations/associated.rb
lib/active_record/validations.rb

Methods

Included Modules

ActiveModel::Validations

Classes and Modules

Module ActiveRecord::Validations::ClassMethods
Class ActiveRecord::Validations::AssociatedValidator
Class ActiveRecord::Validations::UniquenessValidator

Public Instance methods

The validation process on save can be skipped by passing false. The regular Base#save method is replaced with this when the validations module is mixed in, which it is by default.

Attempts to save the record just like Base#save but will raise a RecordInvalid exception instead of returning false if the record is not valid.

Runs all the specified validations and returns true if no errors were added otherwise false.

Protected Instance methods

[Validate]