mirror of
https://github.com/tildeverse/lobsters
synced 2024-06-15 05:26:35 +00:00
config: fix loading of extras/ in rails 5
rails 5 no longer autoloads things after it starts up, so when things like Markdowner are requested, they aren't automatically loaded from extras/markdowner.rb just eager-load everything in extras/ at startup http://blog.bigbinary.com/2016/08/29/rails-5-disables-autoloading-after-booting-the-app-in-production.html
This commit is contained in:
parent
28c8217652
commit
632b2b5863
|
@ -13,7 +13,10 @@ module Lobsters
|
|||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
# 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)
|
||||
|
||||
# Eager load everything in extras/
|
||||
config.eager_load_paths << Rails.root.join("extras")
|
||||
|
||||
# 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user