Class: SolidObserver::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionController::RequestForgeryProtection, ActionView::Layouts, ActionView::Rendering
Defined in:
app/controllers/solid_observer/application_controller.rb

Class Method Summary collapse

Class Method Details

.runtime_db_errorsObject



5
6
7
8
9
10
11
# File 'app/controllers/solid_observer/application_controller.rb', line 5

def self.runtime_db_errors
  [
    *([PG::ConnectionBad] if defined?(PG::ConnectionBad)),
    *([Mysql2::Error::ConnectionError] if defined?(Mysql2::Error::ConnectionError)),
    *([SQLite3::CantOpenException] if defined?(SQLite3::CantOpenException))
  ]
end