lib/sprockets/helpers/rails_helper.rb in actionpack-3.2.8 vs lib/sprockets/helpers/rails_helper.rb in actionpack-3.2.9.rc1

- old
+ new

@@ -145,10 +145,12 @@ def rewrite_asset_path(source, dir, options = {}) if source[0] == ?/ source else - source = digest_for(source) unless options[:digest] == false + if digest_assets && options[:digest] != false + source = digest_for(source) + end source = File.join(dir, source) source = "/#{source}" unless source =~ /^\// source end end