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


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

def default
  nil
end

#validate?(_value) ⇒ Boolean

Returns:

  • (Boolean)

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

def validate?(_value)
  true
end