Sha256: 8d519139e0933d07dd7df105b4cffea61cbb9f4ad2a677e875bc697f201d0730

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

class Topic < ActiveRecord::Base
  include AllowSettingIdOnCreate

  belongs_to :forum
  belongs_to :active_forum, :conditions => { :trashed => false }, :class_name => 'Forum'
  has_many :posts
  belongs_to :author, :class_name => 'User'
  has_many :post_authors, :through => :posts

  has_defaults :trashed => false

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
edge_rider-0.2.5 spec/shared/app_root/app/models/topic.rb
edge_rider-0.2.4 spec/shared/app_root/app/models/topic.rb
edge_rider-0.2.3 spec/shared/app_root/app/models/topic.rb
edge_rider-0.2.2 spec/shared/app_root/app/models/topic.rb
edge_rider-0.2.1 spec/shared/app_root/app/models/topic.rb
edge_rider-0.2.0 spec/shared/app_root/app/models/topic.rb
edge_rider-0.1.1 spec/shared/app_root/app/models/topic.rb