abstract class ActiveModel::Model
- ActiveModel::Model
- Reference
- Object
Defined in:
active-model/model.crInstance Method Summary
-
#apply_defaults
Stub methods to prevent compiler errors
- #changed?
- #changed_attributes
- #clear_changes_information
Macro Summary
-
__customize_orm__
For overriding in parent classes
- __getters__
- __nilability_validation__
- attribute(name, converter = nil, mass_assignment = true, persistence = true, **tags, &block)
-
enum_attribute(name, column_type = Int32, mass_assignment = true, persistence = true, **tags)
Allow enum attributes.
Instance Method Detail
Macro Detail
macro attribute(name, converter = nil, mass_assignment = true, persistence = true, **tags, &block)
#
macro enum_attribute(name, column_type = Int32, mass_assignment = true, persistence = true, **tags)
#
Allow enum attributes. Persisted as either String | Int