Class: Rapporteur::Checks::ActiveRecordCheck
- Inherits:
-
Object
- Object
- Rapporteur::Checks::ActiveRecordCheck
- Defined in:
- lib/rapporteur/checks/active_record_check.rb
Class Method Summary collapse
Class Method Details
.call(checker) ⇒ Object
6 7 8 9 10 |
# File 'lib/rapporteur/checks/active_record_check.rb', line 6 def self.call(checker) ActiveRecord::Base.connection.select_value('SELECT current_time AS time') rescue StandardError checker.add_error(:database, :unavailable) end |