[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:
parent
1a9156c010
commit
f27e184c7f
@ -2,7 +2,6 @@ require 'singleton'
|
||||
|
||||
module Compass
|
||||
class Configuration
|
||||
include Singleton
|
||||
|
||||
ATTRIBUTES = [
|
||||
:project_type,
|
||||
@ -295,10 +294,11 @@ module Compass
|
||||
|
||||
module ConfigHelpers
|
||||
def configuration
|
||||
@configuration ||= Configuration.new
|
||||
if block_given?
|
||||
yield Configuration.instance
|
||||
yield @configuration
|
||||
end
|
||||
Configuration.instance
|
||||
@configuration
|
||||
end
|
||||
|
||||
def sass_plugin_configuration
|
||||
|
Loading…
Reference in New Issue
Block a user