Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use top-level scope for Sass::Script::Functions

  • Loading branch information...
commit 8a129731dd9cd7fad1fd1113424449e25e371362 1 parent a12e444
@wllrd wllrd authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sprockets/sass_template.rb
View
4 lib/sprockets/sass_template.rb
@@ -11,7 +11,7 @@ class SassTemplate < Tilt::Template
def self.engine_initialized?
defined?(::Sass::Engine) && defined?(::Sass::Script::Functions) &&
- Sass::Script::Functions < Sprockets::SassFunctions
+ ::Sass::Script::Functions < Sprockets::SassFunctions
end
def initialize_engine
@@ -23,7 +23,7 @@ def initialize_engine
# Install custom functions. It'd be great if this didn't need to
# be installed globally, but could be passed into Engine as an
# option.
- Sass::Script::Functions.send :include, Sprockets::SassFunctions
+ ::Sass::Script::Functions.send :include, Sprockets::SassFunctions
end
def prepare
Please sign in to comment.
Something went wrong with that request. Please try again.