Skip to content

Commit

Permalink
Merge pull request twbs#373 from trisweb/trisweb_glebm_fix_sprockets_…
Browse files Browse the repository at this point in the history
…context

Fix the Sprockets context reference for pre-2.10 Sprockets
  • Loading branch information
thomas-mcdonald committed May 31, 2013
2 parents 41602a4 + 91a628f commit dc2b52f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bootstrap-sass/compass_functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ def image_path(source, options = {})

protected
def sprockets_context # :nodoc:
options[:sprockets][:context]
if options.key?(:sprockets)
options[:sprockets][:context]
else
# Compatibility with sprockets pre 2.10.0
options[:importer].context
end
end
end

0 comments on commit dc2b52f

Please sign in to comment.