7ccae2c4f1
Use head instead
11 lines
218 B
Ruby
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
|