module Validations
Ruby on Rails 3.2.22.5
Since v2.2.3Active 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?.
Namespace
Modules
Classes
Includes
Extends
Methods (defined here)
- # perform_validations
- # save
- # save!
- # valid?
Used by
Included by (1)
Methods (inherited)
From ActiveModel::Validations (5)
- # errors
- # invalid?
- # run_validations!
- # valid?
- # validates_with
From ActiveSupport::Concern (3)
- # append_features
- # included
- self. extended
From ActiveModel::Translation (3)
From ActiveSupport::Callbacks (1)
From ActiveModel::Naming (9)
- # model_name
- self. convert_to_model
- self. model_name_from_record_or_class
- self. param_key
- self. plural
- self. route_key
- self. singular
- self. singular_route_key
- self. uncountable?
From ActiveSupport::DescendantsTracker (6)
- # descendants
- # direct_descendants
- # inherited
- self. clear
- self. descendants
- self. direct_descendants