Skip to content

Commit

Permalink
Add lib to eager_load directories
Browse files Browse the repository at this point in the history
This emulates behavior in previous versions of rails and our app assumes
lib/ is visible
  • Loading branch information
acoffman committed Sep 4, 2019
1 parent e560b41 commit 7b1644b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Application < Rails::Application

config.middleware.use Rack::Attack

config.eager_load_paths << Rails.root.join('lib')

config.middleware.insert_before ActionDispatch::Static, Rack::Rewrite do
rewrite %r{^(?!/(api|links|admin|list)(/.*)?(\?.*)?$).*}, '/index.html', :not => %r{(.*\..*)}
end
Expand Down

0 comments on commit 7b1644b

Please sign in to comment.