Handle errors using Gaffe
This commit is contained in:
parent
ae4979a3f0
commit
9efa9d5d43
12 changed files with 71 additions and 17 deletions
6
config/initializers/gaffe.rb
Normal file
6
config/initializers/gaffe.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue