Sha256: d52a5cee3a75a4292067da0ad4d34048818588082799a86ecbc52d62d65073d5

Contents?: true

Size: 1.83 KB

Versions: 6

Compression:

Stored size: 1.83 KB

Contents

# Default relations for Social Stream
#
# Define the default relations and permissions supported by your application
# Though subjects can customize their own relations, these are the defaults
# to start up 
#
# Detailed information on permissions is available at:
# http://rdoc.info/gems/social_stream/Permission
#
user:
  friend:
    name: friend
    permissions:
      - [ follow ]                       # follow the activities of the friend
      - [ create,  activity, tie ]       # let the friend create activities to the same tie
      - [ read,    activity, star_ties ] # friend can read activities from the other friends
      - [ update,  activity, tie ]       # update activities to the same tie
      - [ destroy, activity, tie ]       # destroy activities to the same tie
  acquaintance:
    name: acquaintance
    parent: friend # friend relation is stronger than acquaintance
    permissions:
      - [ read,    activity, star_ties ]
  public:
    name: public
    parent: acquaintance # acquaintance is stronger than public
    permissions:
      - [ read,    activity, star_ties ]

group:
  member:
    name: member
    permissions:
      - [ represent ]                         # let the member act as the group
      - [ create,  activity, weak_ties ]      # let them member create activities at the level of member, partner and public
      - [ read,    activity, star_ties ]      # read activities from other members
      - [ update,  activity, weak_star_ties ] # update and destroy activities to members,
      - [ destroy, activity, weak_star_ties ] # acquaintance and public
  partner:
    name: partner
    parent: member # member is stronger than partner
    permissions:
      - [ read,    activity, star_ties ]
  public:
    name: public
    parent: partner # partner is stronger than public
    permissions:
      - [ read,    activity, star_ties ]

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
social_stream-0.4.1 lib/generators/social_stream/templates/relations.yml
social_stream-0.4.1 spec/dummy/config/relations.yml
social_stream-0.4.0 lib/generators/social_stream/templates/relations.yml
social_stream-0.4.0 spec/dummy/config/relations.yml
social_stream-0.3.6 lib/generators/social_stream/templates/relations.yml
social_stream-0.3.6 spec/dummy/config/relations.yml