Enable Rails autoloading in rake tasks
Then environment task disables, eager loading breaks with Devise and requiring all needed files would be a mess
This commit is contained in:
parent
553a5258a8
commit
1e09814b13
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ Diaspora::Application.configure do
|
|||
# Enable threaded mode
|
||||
config.threadsafe!
|
||||
|
||||
# Enable autoload for rake tasks
|
||||
config.dependency_loading = true if $rails_rake_task
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation can not be found)
|
||||
config.i18n.fallbacks = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue