Don't use methods not available in ruby 1.8.6
This commit is contained in:
parent
67a7a37b42
commit
7f756f681a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user