def type_for_attribute(attr_name)
      attr_name = attr_name.to_s
      attribute_types[attr_name]
    end
Returns the type of the attribute with the given name

@param attr_name [String] name of the attribute

@return [ActiveModel::Type::Value]