module

ActiveModel::Model

Inherits ActiveModel::Access < ActiveModel::API < ActiveModel::Validations < ActiveModel::AttributeAssignment < ActiveModel::Attributes < ActiveModel::Conversion < ActiveModel::Translation < ActiveModel::Naming

Constructors

new

Crystal's new does not pick up initialize from indirectly included modules (API's copy is invisible through Model) — redefined here.

Class methods

human_attribute_name(attribute : String | Symbol) : String
model_name

Instance methods

__attribute?(key : String) : Bool
__attribute_default(key : String) : ActiveModel::Value
__attribute_names
__run_validations(context : Symbol | Nil) : Nil
__write_attribute(key : String, v : ActiveModel::Value) : Nil