2016-06-01 15:07:27 +02:00
|
|
|
class PingController < ApplicationController
|
|
|
|
def index
|
2016-07-06 10:06:28 +02:00
|
|
|
Rails.logger.silence do
|
|
|
|
if (ActiveRecord::Base.connected?)
|
2018-02-01 17:49:19 +01:00
|
|
|
head :ok, content_type: "application/json"
|
2016-07-06 10:06:28 +02:00
|
|
|
else
|
2018-02-01 17:49:19 +01:00
|
|
|
head :internal_server_error, content_type: "application/json"
|
2016-07-06 10:06:28 +02:00
|
|
|
end
|
2016-06-01 15:07:27 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|