lib/sprockets/sass/importer.rb in sprockets-sass-0.2.2 vs lib/sprockets/sass/importer.rb in sprockets-sass-0.2.3

- old
+ new

@@ -91,16 +91,16 @@ def resolve_glob(glob, base_path) base_path = Pathname.new(base_path) path_with_glob = base_path.dirname.join(glob).to_s Pathname.glob(path_with_glob).sort.select do |path| - path != context.pathname # && context.asset_requirable?(path) + path != context.pathname && context.asset_requirable?(path) end end # Finds the asset using the context from Sprockets. def resolve_path(path) - context.resolve path #, :content_type => :self + context.resolve path, :content_type => :self rescue ::Sprockets::FileNotFound, ::Sprockets::ContentTypeMismatch nil end # Returns the Sass syntax of the given path.