mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Use correct reference to context through the importer
Fixes #366 in the correct way, hopefully. I can't cite my sources well, since Sprockets is very difficult to follow... but suffice to say the global options hash sent to the Tilt SASS template engine always has a reference to the Sprockets importer, and the importer always has a reference to the context. Tested with Sprockets 2.2.2 with and without Rails.
This commit is contained in:
parent
a14d765d15
commit
91a628ffa0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module Sass::Script::Functions
|
|||
options[:sprockets][:context]
|
||||
else
|
||||
# Compatibility with sprockets pre 2.10.0
|
||||
options[:custom][:sprockets_context]
|
||||
options[:importer].context
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue