lib/lotu/behaviors/system_user.rb in lotu-0.1.14 vs lib/lotu/behaviors/system_user.rb in lotu-0.1.15

- old
+ new

@@ -1,10 +1,11 @@ module Lotu module SystemUser # Allows to activate a system in the host - def use(klass, opts={}) - @systems[klass] = klass.new(self, opts) + def use( klass, opts={} ) + @systems ||= Hash.new + @systems[klass] = klass.new( self, opts ) end end end