[Core] The compass configuration class is no longer a singleton. This allows other projects to manage multiple compass projects by creating multiple configurations within the same ruby process.

This commit is contained in:
Chris Eppstein 2009-08-12 17:46:48 -07:00
parent 1a9156c010
commit f27e184c7f

View File

@ -2,7 +2,6 @@ require 'singleton'
module Compass module Compass
class Configuration class Configuration
include Singleton
ATTRIBUTES = [ ATTRIBUTES = [
:project_type, :project_type,
@ -295,10 +294,11 @@ module Compass
module ConfigHelpers module ConfigHelpers
def configuration def configuration
@configuration ||= Configuration.new
if block_given? if block_given?
yield Configuration.instance yield @configuration
end end
Configuration.instance @configuration
end end
def sass_plugin_configuration def sass_plugin_configuration