Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Image URLs are omitted #37

Open
loe opened this issue Jun 29, 2015 · 2 comments
Open

Generated Image URLs are omitted #37

loe opened this issue Jun 29, 2015 · 2 comments

Comments

@loe
Copy link

loe commented Jun 29, 2015

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
@petebrowne
Copy link
Owner

Yeah a PR would be appreciated!

@bogdanRada
Copy link
Contributor

Is this still needed? From what i see it;s been more than a year since last comment. I would be happy to help if this is still needed

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

No branches or pull requests

3 participants