Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #378 from wllrd/master

Consistent scope for Sass::Script::Functions
  • Loading branch information...
commit 5407b5d0e24d2b18d3cfbe079393ef1dfb41d779 2 parents a12e444 + 8a12973
Joshua Peek josh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sprockets/sass_template.rb
4 lib/sprockets/sass_template.rb
View
@@ -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.