Skip to content

Commit

Permalink
Ensure importer accepts context reference
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Nov 24, 2014
1 parent 3ead063 commit fa0175e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/sass/rails/importer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'sass'
require 'sprockets/sass_importer'

module Sprockets
Expand All @@ -7,6 +8,11 @@ class SassImporter < Sass::Importers::Filesystem
attr_reader :context
private :context

def initialize(context, root)
@context = context
super root.to_s
end

def extensions
{
'css' => :scss,
Expand Down

0 comments on commit fa0175e

Please sign in to comment.