модуль ActiveModel::Type
Публичные методы класса
# File activemodel/lib/active_model/type.rb, line 30 def register(type_name, klass = nil, &block) registry.register(type_name, klass, &block) end
Добавить новый тип в реестр, позволяя ссылаться на него как на символ с помощью attribute.
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.