Permalink
Browse files

Set i18n-js.asset_dependencies to run before i18n-js.initialize initi…

…alizer.
  • Loading branch information...
ugisozols committed Feb 20, 2012
1 parent cf02183 commit af10f702f7d86693d275f98fcf79319790d330b7
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/i18n-js/engine.rb
View
@@ -3,7 +3,8 @@ module I18n
class Engine < ::Rails::Engine
I18N_TRANSLATIONS_ASSET = "i18n/translations"
- initializer "i18n-js.asset_dependencies", :after => "sprockets.environment" do
+ initializer "i18n-js.asset_dependencies", :after => "sprockets.environment",
+ :before => "i18n-js.initialize" do
next unless SimplesIdeias::I18n.has_asset_pipeline?
config = I18n.config_file

0 comments on commit af10f70

Please sign in to comment.