moduleActiveRecordmoduleAttributesclassStore<HashincludeActiveRecord::Attributes::TypecastingincludeActiveRecord::Attributes::Aliasing# Attributes not mapped to a column are handled using Type::Unknown,# which enables boolean typecasting for unmapped keys.deftypes@types||=Hash.new(Type::Unknown.new)endendendend