Permalink
Browse files

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

  • Loading branch information...
1 parent a12e444 commit 8a129731dd9cd7fad1fd1113424449e25e371362 @wllrd wllrd committed Nov 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 8a12973

Please sign in to comment.