lib/i18n/assets/sprockets.rb in i18n-assets-0.0.3 vs lib/i18n/assets/sprockets.rb in i18n-assets-0.0.4
- old
+ new
@@ -13,10 +13,10 @@
# prevent asset from caching by adding timestamp
def asset_path(source, options = {})
path = asset_path_without_locale(source, options)
- if path =~ LOCALIZABLE_ASSETS_REGEX
+ if !digest_assets? && path =~ LOCALIZABLE_ASSETS_REGEX
separator = path =~ /\?/ ? '&' : '?'
"#{ path }#{ separator }t=#{ Time.now.to_i }"
else
path
end