From 68b9f6a974d6b6098b9f61601a5f33b5b09cae69 Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 23 Oct 2013 12:57:42 +0200 Subject: [PATCH] i18n-js assets configuration change --- config/application.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index ee7d7d71..2d8cf3ef 100644 --- a/config/application.rb +++ b/config/application.rb @@ -60,7 +60,8 @@ module Foodsoft # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' - # Do not enable database connection when precompiling assets - config.assets.initialize_on_precompile = false + # It would be nice not to enable database connection when precompiling assets, + # but i18n-js requires initialization, that's why it's on. + config.assets.initialize_on_precompile = true end end