13 lines
319 B
Ruby
13 lines
319 B
Ruby
class PingController < ApplicationController
|
|
|
|
def index
|
|
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
|
|
end
|
|
end
|
|
|
|
end
|