From 1e09814b13e8145d6df897fca5383e35f14a2727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 26 May 2014 23:51:01 +0200 Subject: [PATCH] Enable Rails autoloading in rake tasks Then environment task disables, eager loading breaks with Devise and requiring all needed files would be a mess --- config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+) 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