Skip to content

Instantly share code, notes, and snippets.

@naaman

naaman/gist:10492798

Created Apr 11, 2014
Embed
What would you like to do?
get '/api/health/db' do
Data.db_ping
to_json(status: 'ok')
rescue
raise UnavailableException
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment