class ActiveModel::LazyAttributeSet
def default_attribute(
Experimental RBS support (using type sampling data from the type_fusion project).
def default_attribute: (String name, ?true value_present, ?Integer value) -> ActiveModel::Attribute::FromDatabase
This signature was generated using 2 samples from 1 application.
def default_attribute( name, value_present = true, value = values.fetch(name) { value_present = false } ) type = additional_types.fetch(name, types[name]) if value_present @attributes[name] = Attribute.from_database(name, value, type, @casted_values[name]) elsif types.key?(name) if attr = default_attributes[name] @attributes[name] = attr.dup else @attributes[name] = Attribute.uninitialized(name, type) end else Attribute.null(name) end end