module Sequel::Plugins::ValidationHelpersGenericTypeMessages::InstanceMethods

Private Instance Methods

validates_type_error_message(m, klass) click to toggle source

Use a generic error message for type validations.

Calls superclass method
# File lib/sequel/plugins/validation_helpers_generic_type_messages.rb, line 61
def validates_type_error_message(m, klass)
  # SEQUEL6: Make this the default behavior in validation_helpers
  if OVERRIDE_PROC.equal?(m)
    TYPE_ERROR_STRINGS[klass]
  else
    super
  end
end