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:
Jonne Haß 2014-05-26 23:51:01 +02:00
parent 553a5258a8
commit 1e09814b13

View file

@ -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