Sha256: bdd85846ff4d7fcc8e5d9c5abc7d0f163f77c9665a40a36470d6c6e5a993efed
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require "i18n/js" module I18n 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 source end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n-js-3.0.0.rc7 | lib/i18n/js/engine.rb |