module ActiveAttr::Typecasting

Constants

TYPECASTER_MAP

@private

Public Instance Methods

typecaster_for(type) click to toggle source

redefine for active_attr <= 0.7.0

# File lib/active_attr_extended.rb, line 29
def typecaster_for(type)
  typecaster = TYPECASTER_MAP[type]
  typecaster.new if typecaster
end