Namespace
Module
Class
- ActiveModel::Type::BigInteger
- ActiveModel::Type::Binary
- ActiveModel::Type::Boolean
- ActiveModel::Type::Date
- ActiveModel::Type::DateTime
- ActiveModel::Type::Decimal
- ActiveModel::Type::Float
- ActiveModel::Type::ImmutableString
- ActiveModel::Type::Integer
- ActiveModel::Type::String
- ActiveModel::Type::Time
- ActiveModel::Type::Value
Methods
Class Public methods
register(type_name, klass = nil, &block)
Add a new type to the registry, allowing it to be referenced as a symbol by attribute.
📝 Source code
# File activemodel/lib/active_model/type.rb, line 30
def register(type_name, klass = nil, &block)
registry.register(type_name, klass, &block)
end
🔎 See on GitHub