Skip to content

Commit

Permalink
Merge pull request #264 from vojtad/sprockets-3
Browse files Browse the repository at this point in the history
Fixed TypeError: no implicit conversion of Sprockets::Asset into String
  • Loading branch information
craigmcnamara committed Feb 16, 2016
2 parents 47db9cb + a87f456 commit 4961926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass-rails/patches/compass.rb
Expand Up @@ -4,7 +4,7 @@
def image_path_for_size(image_file)
begin
file = ::CompassRails.sprockets.find_asset(image_file)
return file
return (file.respond_to?(:pathname) ? file.pathname.to_s : file)
rescue ::Sprockets::FileOutsidePaths
return super(image_file)
end
Expand Down

0 comments on commit 4961926

Please sign in to comment.