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?)
|
|
|
|
render nothing: true, status: 200, content_type: "application/json"
|
|
|
|
else
|
|
|
|
render nothing: true, status: 500, content_type: "application/json"
|
|
|
|
end
|
2016-06-01 15:07:27 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|