Module: Watchtower::WatchedExceptionBase::Validations

Defined in:
lib/watchtower/watched_exception_base.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



32
33
34
35
# File 'lib/watchtower/watched_exception_base.rb', line 32

def self.included(base)
  base.validates_presence_of :key
  base.validates_uniqueness_of :key
end