Sha256: 0b7e17db852ac172fb4e3c5fba275f74cf3656474d68ae0e772c7a3b72cb165d
Contents?: true
Size: 421 Bytes
Versions: 4
Compression:
Stored size: 421 Bytes
Contents
class Group < ActiveRecord::Base attr_accessor :_founder def followers subjects(:subject_type => :user, :direction => :senders) end after_create :create_founder private def create_founder founder = Actor.find_by_permalink(_founder) || raise("Cannot create group without founder") sent_ties.create! :receiver => founder, :relation => relations.sort.first end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.3.3 | app/models/group.rb |
social_stream-0.3.2 | app/models/group.rb |
social_stream-0.3.1 | app/models/group.rb |
social_stream-0.3.0 | app/models/group.rb |