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

Commit a4b6359

Browse files
committed
Merge pull request #246 from swils/master
A small fix that makes requirejs-rails work with Sprockets 3.3.0
2 parents 7069be7 + 6615fd1 commit a4b6359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/requirejs-rails_tasks.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ OS X Homebrew users can use 'brew install node'.
162162
built_asset_path = requirejs.config.build_dir.join(asset_name)
163163

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

0 commit comments

Comments
 (0)