Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Extensions could be empty

  • Loading branch information...
commit 4863801a829d1237e729b321d4d5a416f4ec35d4 1 parent 4ba5b32
@josh josh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sprockets/asset_attributes.rb
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.