Class: HealthyRack::Checks::Sequel

Inherits:
HealthyRack::Check show all
Defined in:
lib/healthy_rack/checks/sequel.rb

Instance Method Summary collapse

Methods inherited from HealthyRack::Check

#==, #hash, #name

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/healthy_rack/checks/sequel.rb', line 11

def call
  ::Sequel::Model.db.select(nil).first
  true
rescue
  false
end

#verifyObject



7
8
9
# File 'lib/healthy_rack/checks/sequel.rb', line 7

def verify
  VerifyClassDefinition.call('Sequel')
end