Sha256: 9232784933ad992e1551feaa5f0650a16d52e90a29e53ab4adc4708f39850648

Contents?: true

Size: 1.63 KB

Versions: 8

Compression:

Stored size: 1.63 KB

Contents

# Seed configuration for Social Stream
#
# Define the relations and permissions supported by your application
#
relations:
  user-friend:
    sender_type: User
    receiver_type: User
    name: friend
    inverse: user-friend
    reflexive: true
    permissions:
      - [ create,  activity, inverse_weak_set ]
      - [ read,    activity, inverse_group_set ]
      - [ update,  activity, inverse_weak_set ]
      - [ destroy, activity, inverse_weak_set ]
  user-public:
    sender_type: User
    receiver_type: User
    name: public
    parent: user-friend
    inverse: user-public
    permissions:
      - [ read,    activity, inverse_group_set ]
  user-friend-request:
    sender_type: User
    receiver_type: User
    name: friend_request
    granted: user-friend

  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
  user-group-public:
    sender_type: User
    receiver_type: Group
    name: public
    parent: user-group-member
    inverse: group-user-public

  group-user-member:
    sender_type: Group
    receiver_type: User
    name: member
    inverse: user-group-member
    permissions:
      - [ create,  activity, inverse_weak_set ]
      - [ read,    activity, inverse_group_set ]
      - [ update,  activity, inverse_weak_group_set ]
      - [ destroy, activity, inverse_weak_group_set ]
  group-user-public:
    sender_type: Group
    receiver_type: User
    name: public
    parent: group-user-member
    inverse: user-group-public
    permissions:
      - [ read,    activity, inverse_group_set ]

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
social_stream-0.2.3 lib/generators/social_stream/templates/seeds.yml
social_stream-0.2.3 spec/dummy/db/seeds/social_stream.yml
social_stream-0.2.2 lib/generators/social_stream/templates/seeds.yml
social_stream-0.2.2 spec/dummy/db/seeds/social_stream.yml
social_stream-0.2.1 lib/generators/social_stream/templates/seeds.yml
social_stream-0.2.1 spec/dummy/db/seeds/social_stream.yml
social_stream-0.2.0 lib/generators/social_stream/templates/seeds.yml
social_stream-0.2.0 spec/dummy/db/seeds/social_stream.yml