module AttributeMethods
Ruby on Rails 8.1.2
Since v2.2.3Active Record Attribute Methods
Namespace
Modules
- ActiveRecord::AttributeMethods::BeforeTypeCast
- ActiveRecord::AttributeMethods::ClassMethods
- ActiveRecord::AttributeMethods::Dirty
- ActiveRecord::AttributeMethods::PrimaryKey
- ActiveRecord::AttributeMethods::Query
- ActiveRecord::AttributeMethods::Read
- ActiveRecord::AttributeMethods::Serialization
- ActiveRecord::AttributeMethods::TimeZoneConversion
- ActiveRecord::AttributeMethods::Write
Includes
- ActiveModel::AttributeMethods
- ActiveRecord::AttributeMethods::Read
- ActiveRecord::AttributeMethods::Write
- ActiveRecord::AttributeMethods::BeforeTypeCast
- ActiveRecord::AttributeMethods::Query
- ActiveRecord::AttributeMethods::PrimaryKey
- ActiveRecord::AttributeMethods::TimeZoneConversion
- ActiveRecord::AttributeMethods::Dirty
- ActiveRecord::AttributeMethods::Serialization
Extends
Constants
Methods (defined here)
Private methods
(8)
Implementation detail — not part of the public API.
Used by
Included by (1)
Methods (inherited)
From ActiveModel::AttributeMethods (4)
From ActiveRecord::AttributeMethods::Dirty (13)
- # attribute_before_last_save
- # attribute_change_to_be_saved
- # attribute_in_database
- # attributes_in_database
- # changed_attribute_names_to_save
- # changes_to_save
- # has_changes_to_save?
- # reload
- # saved_change_to_attribute
- # saved_change_to_attribute?
- # saved_changes
- # saved_changes?
- # will_save_change_to_attribute?
From ActiveRecord::AttributeMethods::PrimaryKey (7)
- # id
- # id=
- # id?
- # id_before_type_cast
- # id_in_database
- # id_was
- # to_key
From ActiveSupport::Autoload (5)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended
From ActiveModel::Dirty (22)
-
#
*_change -
#
*_changed? -
#
*_previous_change -
#
*_previously_changed? -
#
*_previously_was -
#
*_was -
#
*_will_change! - # attribute_changed?
- # attribute_previously_changed?
- # attribute_previously_was
- # attribute_was
- # changed
- # changed?
- # changed_attributes
- # changes
- # changes_applied
-
#
clear_*_change - # clear_attribute_changes
- # clear_changes_information
- # previous_changes
-
#
restore_*! - # restore_attributes