module Validations
Ruby on Rails 7.1.6
Since v2.2.3Active Record Validations
Active Record includes the majority of its validations from ActiveModel::Validations.
In Active Record, all validations are performed on save by default. Validations accept the :on argument to define the context where the validations are active. Active Record will pass either the context of :create or :update depending on whether the model is a new_record?.
Namespace
Modules
Includes
Extends
Methods (defined here)
Private methods
(3)
Implementation detail — not part of the public API.
Used by
Included by (1)
Methods (inherited)
From ActiveModel::Validations (7)
- # errors
- # invalid?
- # valid?
- # validate
- # validate!
- # validates_with
- # validation_context
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended
From ActiveModel::Callbacks (1)
From ActiveModel::Naming (7)
- # model_name
- self. param_key
- self. plural
- self. route_key
- self. singular
- self. singular_route_key
- self. uncountable?
From ActiveModel::Translation (3)
From ActiveModel::Validations::HelperMethods (11)
From ActiveSupport::Callbacks (1)
From ActiveSupport::DescendantsTracker (4)
- # descendants
- # subclasses
- self. descendants
- self. subclasses