Skip to content

Commit

Permalink
Merge pull request rails#140 from samuelkadolph/fix_assets_precompile…
Browse files Browse the repository at this point in the history
…_on_jruby

Pass a String to MD5::Digest.file because jruby barfs on a Pathname.
  • Loading branch information
josh committed Aug 2, 2011
2 parents fc31a6b + e9a7de1 commit 7345d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/base.rb
Expand Up @@ -72,7 +72,7 @@ def file_digest(path, data = nil)

# If its a file, digest the contents
elsif stat.file?
digest.file(path)
digest.file(path.to_s)

# If its a directive, digest the list of filenames
elsif stat.directory?
Expand Down

0 comments on commit 7345d9a

Please sign in to comment.