Class: Healthcheck::HealthchecksController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/healthcheck/healthchecks_controller.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



6
7
8
9
10
11
# File 'app/controllers/healthcheck/healthchecks_controller.rb', line 6

def check
  checker = Healthcheck.check
  return head Healthcheck.configuration.success unless checker.errored?

  verbose? ? verbose_error(checker) : head_error
end