Class: ErrMerchant::ExceptionsApp
- Inherits:
-
Object
- Object
- ErrMerchant::ExceptionsApp
- Defined in:
- lib/err_merchant/exceptions_app.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/err_merchant/exceptions_app.rb', line 5 def call(env) status = env["PATH_INFO"][1..-1] ErrMerchant::ErrorsController.action(Rack::Utils::SYMBOL_TO_STATUS_CODE.invert[status.to_i]).call(env) rescue ActionDispatch::PublicExceptions.new(Rails.root.join('public')).call(env) end |