Skip to content

Commit

Permalink
Merge pull request #1311 from errbit/bugfix/eager_load-to-fix-class-l…
Browse files Browse the repository at this point in the history
…oad-errors

Rails: eager-load all of lib/
  • Loading branch information
stevecrozz committed Jul 19, 2018
2 parents ff45c53 + d089a09 commit 9cae748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Expand Up @@ -15,8 +15,8 @@ class Application < Rails::Application
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.

# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths << Rails.root.join('lib').to_s
# Custom directories with classes and modules you want to eager load.
config.eager_load_paths << Rails.root.join('lib').to_s

config.before_initialize do
config.secret_key_base = Errbit::Config.secret_key_base
Expand Down

0 comments on commit 9cae748

Please sign in to comment.