Skip to content

Commit 2dc4287

Browse files
committed
Merge pull request #274 from rails/support-sprockets-2-12
Support Sprockets 2.12.x
2 parents 6a39f6a + fa0175e commit 2dc4287

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

lib/sass/rails/importer.rb

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'sass'
12
require 'sprockets/sass_importer'
23

34
module Sprockets
@@ -7,6 +8,11 @@ class SassImporter < Sass::Importers::Filesystem
78
attr_reader :context
89
private :context
910

11+
def initialize(context, root)
12+
@context = context
13+
super root.to_s
14+
end
15+
1016
def extensions
1117
{
1218
'css' => :scss,

0 commit comments

Comments
 (0)