Sha256: db022c840fecbba19c40bac0db72305e8a8f9d328a303ed5356f49e860bbf5aa

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

class Topic < ActiveRecord::Base
  include AllowSettingIdOnCreate

  belongs_to :forum
  EdgeRider::Util.define_association self, :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

2 entries across 2 versions & 1 rubygems

Version Path
edge_rider-0.3.1 spec/shared/app_root/app/models/topic.rb
edge_rider-0.3.0 spec/shared/app_root/app/models/topic.rb