Skip to content

Generated Image URLs are omitted #37

Description

@loe

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions