Sha256: 12d046ae941aa9bb61fb9536b7f4adcda8bf5d435e740912cd10a70f617565ce
Contents?: true
Size: 497 Bytes
Versions: 8
Compression:
Stored size: 497 Bytes
Contents
#encoding: utf-8 require 'sprockets' module I18n module Js class FileDependencyProcessor < Sprockets::Processor def self.asset_path_regexp @@asset_path_regexp ||= %r{#{I18n::Js.config[:asset_path]}} end def evaluate(context, locals) return data unless context.logical_path =~ self.class.asset_path_regexp ::I18n.load_path.each {|path| context.depend_on(path)} context.depend_on(I18n::Js.config_path) data end end end end
Version data entries
8 entries across 8 versions & 1 rubygems