1 include CurrentApiClient
8 after :create do |user, evaluator|
10 evaluator.join_groups.each do |g|
11 Link.create!(tail_uuid: user.uuid,
13 link_class: 'permission',
15 Link.create!(tail_uuid: g.uuid,
17 link_class: 'permission',
25 "https://example.com/#{rand(2**24).to_s(36)}"
27 factory :active_user do
29 after :create do |user|
31 Link.create!(tail_uuid: user.uuid,
32 head_uuid: Group.where('uuid ~ ?', '-f+$').first.uuid,
33 link_class: 'permission',
38 to_create do |instance|