diff --git a/lib/compass/frameworks.rb b/lib/compass/frameworks.rb index d856bcfe..b818b715 100644 --- a/lib/compass/frameworks.rb +++ b/lib/compass/frameworks.rb @@ -28,7 +28,7 @@ module Compass end def register(name, *arguments) - if idx = ALL.index{|f| f.name.to_s == name.to_s} + if idx = ALL.index(self[name]) ALL[idx] = Framework.new(name, *arguments) else ALL << Framework.new(name, *arguments)