Skip to content

Commit

Permalink
Merge pull request #274 from rails/support-sprockets-2-12
Browse files Browse the repository at this point in the history
Support Sprockets 2.12.x
  • Loading branch information
josh committed Nov 24, 2014
2 parents 6a39f6a + fa0175e commit 2dc4287
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 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
Loading

0 comments on commit 2dc4287

Please sign in to comment.