class ModelAttribute::UnsupportedTypeError

Public Class Methods

new(type) click to toggle source
Calls superclass method
# File lib/model_attribute/errors.rb, line 9
def initialize(type)
  types_list = ModelAttribute::SUPPORTED_TYPES.map(&:inspect).join(', ')
  super "Unsupported type #{type.inspect}. Must be one of #{types_list}."
end