app/models/group.rb in social_stream-base-0.24.2 vs app/models/group.rb in social_stream-base-1.0.0

- old
+ new

@@ -49,11 +49,13 @@ # Creates the ties from the group to the participants def create_ties_to_participants participant_ids = ([ author_id, user_author_id ] | Array.wrap(@_participants)).uniq participant_ids.each do |a| - sent_contacts.create! :receiver_id => a, - :user_author => user_author, - :relation_ids => Array(relation_customs.sort.first.id) + c = + sent_contacts.create! :receiver_id => a, + :user_author => user_author + + c.relation_ids = Array.wrap(relation_customs.sort.first.id) end end end