Permalink
Browse files

Extensions could be empty

  • Loading branch information...
josh committed Nov 2, 2011
1 parent 4ba5b32 commit 4863801a829d1237e729b321d4d5a416f4ec35d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sprockets/asset_attributes.rb
@@ -120,7 +120,7 @@ def content_type
# # => "0aa2105d29558f3eb790d411d7d8fb66"
#
def path_fingerprint
- pathname.basename(extensions.last).to_s =~ /-([0-9a-f]{7,40})$/ ? $1 : nil
+ pathname.basename(extensions.last.to_s).to_s =~ /-([0-9a-f]{7,40})$/ ? $1 : nil
end
# Injects digest fingerprint into path.

0 comments on commit 4863801

Please sign in to comment.