lib/rhoconnect/client.rb in rhoconnect-3.0.4 vs lib/rhoconnect/client.rb in rhoconnect-3.0.5

- old
+ new

@@ -15,10 +15,10 @@ include Document include LockOps def self.create(fields,params={}) Rhoconnect.license.check_and_use_seat - fields[:id] = get_random_uuid + fields[:id] ||= get_random_uuid res = super(fields,params) user = User.load(fields[:user_id]) user.clients << res.id if Rhoconnect.stats Rhoconnect::Stats::Record.set('clients') { Store.incr('client:count') } \ No newline at end of file