lib/generators/social_stream/templates/seeds.yml in social_stream-0.0.4 vs lib/generators/social_stream/templates/seeds.yml in social_stream-0.0.5
- old
+ new
@@ -1,10 +1,11 @@
# Seed configuration for Social Stream
#
# Define your relations and add SocialStream.seed! to db/seeds.rb
#
relations:
+ # User to User
user-friend:
sender_type: User
receiver_type: User
name: friend
# Friendship is a reciprocal relation
@@ -30,5 +31,34 @@
sender_type: User
receiver_type: User
name: friendship_request
# This relation is the request for user-friend
granted: user-friend
+
+ # User to Group
+ user-group-member:
+ sender_type: User
+ receiver_type: Group
+ name: member
+ inverse: group-user-member
+ user-group-follower:
+ sender_type: User
+ receiver_type: Group
+ name: follower
+ parent: user-group-member
+ user-group-public:
+ sender_type: User
+ receiver_type: Group
+ name: public
+ parent: user-group-follower
+
+ # Group to User
+ group-user-member:
+ sender_type: Group
+ receiver_type: User
+ name: member
+ inverse: user-group-member
+ permissions:
+ - [ create, resources, weak_set ]
+ - [ read, resources, group_set ]
+ - [ update, resources, weak_group_set ]
+ - [ destroy, resources, weak_group_set ]