parent
c5c330e1df
commit
9764a0af8d
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@ class PingController < ApplicationController
|
|||
def index
|
||||
Rails.logger.silence do
|
||||
if (ActiveRecord::Base.connected?)
|
||||
head :ok
|
||||
head :ok, content_type: "application/json"
|
||||
else
|
||||
head :internal_server_error
|
||||
head :internal_server_error, content_type: "application/json"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue