From 7f756f681af851a718012fda31cd6258d89b8d30 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 23 Nov 2009 15:16:16 -0800 Subject: [PATCH] Don't use methods not available in ruby 1.8.6 --- lib/compass/frameworks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)