class CompassRails::SpriteImporter
Attributes
context[R]
root[R]
Public Class Methods
new(context, root)
click to toggle source
# File lib/compass-rails/patches/sprite_importer.rb, line 8 def initialize(context, root) @context = context @root = root end
Public Instance Methods
find(uri, options)
click to toggle source
Calls superclass method
# File lib/compass-rails/patches/sprite_importer.rb, line 13 def find(uri, options) if old = super(uri, options) self.class.files(uri).each do |file| relative_path = Pathname.new(file).relative_path_from(Pathname.new(root)) begin pathname = context.resolve(relative_path) context.depend_on_asset(pathname) rescue Sprockets::FileNotFound end end end old end