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

Version Path
social_stream-0.25.2 base/app/models/relation/follow.rb
social_stream-base-0.19.2 app/models/relation/follow.rb
social_stream-0.25.1 base/app/models/relation/follow.rb
social_stream-base-0.19.1 app/models/relation/follow.rb
social_stream-0.25.0 base/app/models/relation/follow.rb
social_stream-base-0.19.0 app/models/relation/follow.rb
social_stream-0.24.1 base/app/models/relation/follow.rb
social_stream-base-0.18.1 app/models/relation/follow.rb
social_stream-0.24.0 base/app/models/relation/follow.rb
social_stream-base-0.18.0 app/models/relation/follow.rb