Skip to content

Commit

Permalink
try loading in different dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeheft committed Jul 8, 2024
1 parent 97f2774 commit fb3267d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

require_relative "../app/middleware/error_handler"
require_relative "../lib/middleware/error_handler"

module RouteRater
class Application < Rails::Application
Expand All @@ -31,8 +31,7 @@ class Application < Rails::Application
config.autoload_lib(ignore: %w(assets tasks))
config.autoload_paths << Rails.root.join('lib')
config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths << "#{Rails.root}/app/middleware"
config.eager_load_paths << "#{Rails.root}/app/middleware"

config.middleware.use Middleware::ErrorHandler

# Configuration for the application, engines, and railties goes here.
Expand Down
File renamed without changes.

0 comments on commit fb3267d

Please sign in to comment.