Catching more exceptions that slipped through, removing AR logging from

production as it's very verbose and not very useful
This commit is contained in:
Eugen Rochko committed 2016-10-05 13:26:44 +02:00
1 parent b078885414
commit fe77921e47
7 files changed
+29 -6

No files matched your search

+4
View File
@@ -18,6 +18,10 @@ class ApiController < ApplicationController
render json: { error: 'Remote data could not be fetched' }, status: 503
end
rescue_from OpenSSL::SSL::SSLError do
render json: { error: 'Remote SSL certificate could not be verified' }, status: 503
end
protected
def current_resource_owner