demarches-normaliennes/app/controllers/ping_controller.rb
2018-01-30 16:56:49 +01:00

11 lines
218 B
Ruby

class PingController < ApplicationController
def index
Rails.logger.silence do
if (ActiveRecord::Base.connected?)
head :ok
else
head :internal_server_error
end
end
end
end