Class: Relation::Follow

Inherits:
Single show all
Defined in:
app/models/relation/follow.rb

Overview

This relation model implements Twitter-like relations: Users just have followers and followings.

Use this model setting config.relation_model = :follow in your config/initializers/social_stream.rb

Constant Summary collapse

PERMISSIONS =
[
  [ 'create', 'activity' ],
  [ 'read',   'activity' ],
  [ 'follow', nil ]
]

Constants inherited from Relation

Negative, Positive

Method Summary

Methods inherited from Single

instance, #name, permissions

Methods inherited from Relation

allow, allow?, #follow?, ids_shared_with, #mode, negative_names, normalize, normalize_id, #positive?, positive_names