Handle errors using Gaffe

This commit is contained in:
wvengen 2015-06-06 20:20:07 +02:00
parent ae4979a3f0
commit 9efa9d5d43
12 changed files with 71 additions and 17 deletions

View file

@ -0,0 +1,6 @@
if Rails.env.production? || Rails.env.staging? || true
Gaffe.configure do |config|
config.errors_controller = 'ErrorsController'
end
Gaffe.enable!
end