Module: ActiveModel::Type
Class Method Summary
-
.register(type_name, klass = nil, **options, &block)
Add a new type to the registry, allowing it to be gotten through
ActiveModel::Type#lookup
Class Method Details
.register(type_name, klass = nil, **options, &block)
Add a new type to the registry, allowing it to be gotten through ActiveModel::Type#lookup
# File 'activemodel/lib/active_model/type.rb', line 28
def register(type_name, klass = nil, **, &block) registry.register(type_name, klass, **, &block) end