Update the autoloading paths

I couldn't even run with eager loading turned on until after this
change. Let's hope it helps with the other code loading issues going on
right now as well.
This commit is contained in:
Matt Rogers 2018-11-22 23:50:56 -06:00
parent f00590a03c
commit 555ae30bef
No known key found for this signature in database
GPG key ID: 605D017C07EB4316

View file

@ -21,7 +21,8 @@ module Tracksapp
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
config.autoload_paths += Dir["#{config.root}/lib/**/"]
config.autoload_paths += %W(#{config.root}/lib)
config.eager_load_paths += %W(#{config.root}/lib)
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.