module ActiveModel::Coercions::ClassMethods

Attributes

declared_coercions[RW]

Public Instance Methods

attribute(attr, type) click to toggle source
# File lib/active_model/coercions.rb, line 20
def attribute(attr, type)
  @declared_coercions[attr] = Coercer.new(type)
end