Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Fix #247
Browse files Browse the repository at this point in the history
  • Loading branch information
carsomyr committed Dec 31, 2015
1 parent a2db510 commit 73feaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/requirejs-rails_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ OS X Homebrew users can use 'brew install node'.

# Compute the digest based on the contents of the compiled file, *not* on the contents of the RequireJS module.
file_digest = ::Rails.application.assets.file_digest(built_asset_path.to_s)
hex_digest = Sprockets::DigestUtils.pack_hexdigest(file_digest)
hex_digest = file_digest.unpack("H*").first
digest_name = asset.logical_path.gsub(path_extension_pattern) { |ext| "-#{hex_digest}#{ext}" }

digest_asset_path = requirejs.config.target_dir + digest_name
Expand Down

0 comments on commit 73feaaf

Please sign in to comment.