module CMDx::Validators::Numeric
def raise_not_within_validation_error!(min, max, options)
def raise_not_within_validation_error!(min, max, options) message = options.dig(:numeric, :not_within_message) || options.dig(:numeric, :not_in_message) || options.dig(:numeric, :message) message %= { min:, max: } unless message.nil? raise ValidationError, message || I18n.t( "cmdx.validators.numeric.not_within", min:, max:, default: "must not be within #{min} and #{max}" ) end