app/models/group.rb in social_stream-0.4.4 vs app/models/group.rb in social_stream-0.4.5
- old
+ new
@@ -28,22 +28,22 @@
def create_founder
founder =
Actor.find_by_slug(_founder) || raise("Cannot create group without founder")
sent_ties.create! :receiver => founder,
- :relation => relations.sort.first
+ :relation => relation_customs.sort.first
end
#Creates the ties betwbeen the group and the participants
def create_participants
return if @_participants.blank?
@_participants.each do |participant|
- participant_actor = Actor.find_by_id(participant.to_i)
+ participant_actor = Actor.find_by_slug!(participant)
sent_ties.create! :receiver => participant_actor,
- :relation => relations.sort.first
+ :relation => relation_customs.sort.first
end
end
end