Skip to content

Commit

Permalink
Merge pull request petebrowne#11 from mono0x/master
Browse files Browse the repository at this point in the history
Avoid a "tilt" warning that occurs with a threaded environment
  • Loading branch information
petebrowne committed Mar 3, 2012
2 parents 6778adb + 219ef72 commit 0b1c738
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/sprockets/sass/sass_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SassTemplate < Tilt::SassTemplate

# Templates are initialized once the functions are added.
def self.engine_initialized?
super && defined?(@@sass_functions_added)
super && (!Sass.add_sass_functions || defined?(Functions))
end

# Add the Sass functions if they haven't already been added.
Expand All @@ -19,9 +19,6 @@ def initialize_engine

if Sass.add_sass_functions
require "sprockets/sass/functions"
@@sass_functions_added = true
else
@@sass_functions_added = false
end
end

Expand Down

0 comments on commit 0b1c738

Please sign in to comment.