Class: RequestType::Validator::NullValidator

Inherits:
Object
  • Object
show all
Defined in:
app/models/request_type/validator.rb

Overview

A NullValidator is used if no specific validator is provided. It accepts everything

Instance Method Summary collapse

Instance Method Details

#defaultObject


70
71
72
# File 'app/models/request_type/validator.rb', line 70

def default
  nil
end

#validate?(_value) ⇒ Boolean

Returns:

  • (Boolean)

66
67
68
# File 'app/models/request_type/validator.rb', line 66

def validate?(_value)
  true
end