class ActiveModel::Errors

def normalize_arguments(attribute, type, **options)

def normalize_arguments(attribute, type, **options)
  # Evaluate proc first
  if type.respond_to?(:call)
    type = type.call(@base, options)
  end
  [attribute.to_sym, type, options]
end