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
62 def validates_type_error_message(m, klass)
63   # SEQUEL6: Make this the default behavior in validation_helpers
64   if OVERRIDE_PROC.equal?(m)
65     TYPE_ERROR_STRINGS[klass]
66   else
67     super
68   end
69 end