Class: Group

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
SocialStream::Models::Subject
Defined in:
app/models/group.rb

Overview

Groups are the other kind of social entities supported in SocialStream::Base

As with User, almost all the interaction with other classes in Social Stream is done through Actor. The glue between Group and Actor is in SocialStream::Models::Subject

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SocialStream::Models::Subject

#to_param

Instance Attribute Details

#ownersObject

Returns the value of attribute owners.



9
10
11
# File 'app/models/group.rb', line 9

def owners
  @owners
end

Instance Method Details

#profile!Object



15
16
17
# File 'app/models/group.rb', line 15

def profile!
  actor!.profile || actor!.build_profile
end