Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…alizer.
  • Loading branch information...
commit af10f702f7d86693d275f98fcf79319790d330b7 1 parent cf02183
@ugisozols ugisozols authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/i18n-js/engine.rb
View
3  lib/i18n-js/engine.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.