Module: Kennel::OptionalValidations

Included in:
Models::Dashboard, Models::Monitor
Defined in:
lib/kennel/optional_validations.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
# File 'lib/kennel/optional_validations.rb', line 4

def self.included(base)
  base.settings :validate
  base.defaults(validate: -> { true })
end