module ActiveModel::Type
Public Class Methods
register(type_name, klass = nil, &block)
click to toggle source
Add a new type to the registry, allowing it to be referenced as a symbol by attribute.
# File lib/active_model/type.rb, line 29 def register(type_name, klass = nil, &block) registry.register(type_name, klass, &block) end