lib/i18n/js/engine.rb in i18n-js-3.0.0.rc7 vs lib/i18n/js/engine.rb in i18n-js-3.0.0.rc8
- old
+ new
@@ -4,10 +4,9 @@
module JS
class Engine < ::Rails::Engine
initializer "i18n-js.register_preprocessor", :after => "sprockets.environment" do
next unless JS::Dependencies.using_asset_pipeline?
next unless JS::Dependencies.sprockets_supports_register_preprocessor?
- next unless Rails.configuration.assets.compile
Rails.application.assets.register_preprocessor "application/javascript", :"i18n-js_dependencies" do |context, source|
if context.logical_path == "i18n/filtered"
::I18n.load_path.each {|path| context.depend_on(File.expand_path(path))}
end