Skip to content

Commit

Permalink
Fixes a bug where ExceptionsApp is not loaded when action controller …
Browse files Browse the repository at this point in the history
…is not loaded

addresses an edge case reported on: #48
  • Loading branch information
yuki24 committed Jun 6, 2019
1 parent 900e325 commit ec9d9e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rambulance/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Railtie < Rails::Railtie
ActiveSupport::Dependencies.load_missing_constant(Object, :ExceptionsApp)
::ExceptionsApp.call(env)
rescue NameError
require "rambulance/exceptions_app" if !defined?(::Rambulance::ExceptionsApp)
::Rambulance::ExceptionsApp.call(env)
end
}
Expand Down

0 comments on commit ec9d9e5

Please sign in to comment.