module
ActiveRecord::Validations
v3.2.8 -
Show latest stable
Active Record Validations
Active Record includes the majority of its validations from ActiveModel::Validations all of which accept the :on argument to define the context where the validations are active. Active Record will always supply either the context of :create or :update dependent on whether the model is a new_record?.
Included modules
- ActiveModel::Validations
Files
- activerecord/lib/active_record/validations.rb
- activerecord/lib/active_record/validations/associated.rb
- activerecord/lib/active_record/validations/uniqueness.rb