Sha256: 3f697ac0c64e563ffb9b63d0daf9b737e890740b095fdb92ee415d2e375dc565
Contents?: true
Size: 419 Bytes
Versions: 10
Compression:
Stored size: 419 Bytes
Contents
# This relation model implements Twitter-like relations: # Users just have followers and followings. # # Use this model setting <tt>config.relation_model = :follow</tt> in your # <tt>config/initializers/social_stream.rb</tt> class Relation::Follow < Relation::Single class << self def instance first || create(:permissions => Array(Permission.find_or_create_by_action('follow'))) end end end
Version data entries
10 entries across 10 versions & 2 rubygems