Permalink
Browse files

Merge pull request #378 from wllrd/master

Consistent scope for Sass::Script::Functions
  • Loading branch information...
2 parents a12e444 + 8a12973 commit 5407b5d0e24d2b18d3cfbe079393ef1dfb41d779 @josh josh 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 5407b5d

Please sign in to comment.