Skip to content

Conversation

lsylvester
Copy link

After upgrading to rails 5 and sprockets 3.5.2, Compass::Core::SassExtensions::Functions::ImageSize::ImageProperties is being initialised with a Sprockets::Asset which no longer responds to to_path.

This adds an additional check to to see the file passed in responds to filename and uses that if it is available to prevent the no implicit conversion of Sprockets::Asset into String errors.

Fixes #2042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant