module CMDx::Validators::Custom
def call(value, options = {})
def call(value, options = {}) return if options.dig(:custom, :validator).call(value, options) raise ValidationError, options.dig(:custom, :message) || I18n.t( "cmdx.validators.custom", default: "is not valid" ) end