Update application.rb
Eager-Load/Autoload the lib/ folder
This commit is contained in:
parent
9255cce58e
commit
6f14a950d1
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ module HenseiApi
|
||||||
# config.time_zone = "Central Time (US & Canada)"
|
# config.time_zone = "Central Time (US & Canada)"
|
||||||
# config.eager_load_paths << Rails.root.join("extras")
|
# config.eager_load_paths << Rails.root.join("extras")
|
||||||
|
|
||||||
|
config.autoload_paths << Rails.root.join("lib")
|
||||||
|
config.eager_load_paths << Rails.root.join("lib")
|
||||||
|
|
||||||
# Only loads a smaller set of middleware suitable for API only apps.
|
# Only loads a smaller set of middleware suitable for API only apps.
|
||||||
# Middleware like session, flash, cookies can be added back manually.
|
# Middleware like session, flash, cookies can be added back manually.
|
||||||
# Skip views, helpers and assets when generating a new resource.
|
# Skip views, helpers and assets when generating a new resource.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue