Method: Rpush::Daemon::Store::ActiveRecord::Reconnectable#check_database_is_connected

Defined in:
lib/rpush/daemon/store/active_record/reconnectable.rb

#check_database_is_connectedObject



68
69
70
71
# File 'lib/rpush/daemon/store/active_record/reconnectable.rb', line 68

def check_database_is_connected
  # Simply asking the adapter for the connection state is not sufficient.
  Rpush::Client::ActiveRecord::Notification.exists?
end