mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
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:
parent
f00590a03c
commit
555ae30bef
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ module Tracksapp
|
||||||
|
|
||||||
# Custom directories with classes and modules you want to be autoloadable.
|
# Custom directories with classes and modules you want to be autoloadable.
|
||||||
# config.autoload_paths += %W(#{config.root}/extras)
|
# 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.
|
# 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.
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue