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


68
69
70
# File 'app/models/request_type/validator.rb', line 68

def default
  nil
end

#validate?(_value) ⇒ Boolean

Returns:

  • (Boolean)

64
65
66
# File 'app/models/request_type/validator.rb', line 64

def validate?(_value)
  true
end