Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@mrzyx.de>2014-05-27 01:51:01 +0400
committerJonne Haß <me@mrzyx.de>2014-05-27 01:58:31 +0400
commit1e09814b13e8145d6df897fca5383e35f14a2727 (patch)
tree202ff0b1669a91cbd29781bf2291ed7c97877e0c
parent553a5258a85121fc05dba559090ac65e88a60867 (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.rb3
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