diff options
author | Jonne Haß <me@mrzyx.de> | 2014-05-27 01:51:01 +0400 |
---|---|---|
committer | Jonne Haß <me@mrzyx.de> | 2014-05-27 01:58:31 +0400 |
commit | 1e09814b13e8145d6df897fca5383e35f14a2727 (patch) | |
tree | 202ff0b1669a91cbd29781bf2291ed7c97877e0c | |
parent | 553a5258a85121fc05dba559090ac65e88a60867 (diff) |
Enable Rails autoloading in rake tasks
Then environment task disables, eager loading breaks with Devise
and requiring all needed files would be a mess
-rw-r--r-- | config/environments/production.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 8d3a7d0f6..666622309 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 |