While working on a Sinatra + Sprockets + Sass + Compass project that uses spriting I ran into this in production. This library should probably support #generated_image_url as well as #image_url.
For my project the paths are the same so I just slammed it in. I'm happy to submit a more complete patch if its useful.
# Monkey-patch sprockets-sass to support generated_image_url with respect for
# digested images.
module Sprockets::Sass::Functions
alias_method :generated_image_url, :image_url
end
While working on a Sinatra + Sprockets + Sass + Compass project that uses spriting I ran into this in production. This library should probably support #generated_image_url as well as #image_url.
For my project the paths are the same so I just slammed it in. I'm happy to submit a more complete patch if its useful.