Sha256: 3d6a6dd3fc6f1ca698749e3b743b90d778676fe217c0a204584402ff1b704673

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

class Sfn::Topic < Sfn::Resource
  attributes :subject, :style, :content, :reply_count, :follower_count, :company_id, :at_sfn
  attribute :last_active_at, :type => Time
  attribute :created_at, :type => Time
  attribute :author, :type => Sfn::Person
  
  def setup_associations
    has_many :replies, :url => "#{path}/replies"
    has_many :people, :url => "#{path}/people"
    has_many :products, :url => "#{path}/products"
    has_many :tags, :url => "#{path}/tags"
    
    belongs_to :company
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-satisfaction-0.7.3 lib/satisfaction/topic.rb
ruby-satisfaction-0.7.0 lib/satisfaction/topic.rb