Sha256: c87c025899470a2ea97fde868d738a72f6d174fe230e828cbe1bc9f00712f977

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

class Forum < ActiveRecord::Base
  include AllowSettingIdOnCreate

  has_many :topics
  has_many :posts, :through => :topics
  EdgeRider::Util.define_association self, :has_many, :active_topics,
    :conditions => { :trashed => false }, :class_name => 'Topic'

  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/forum.rb
edge_rider-0.3.0 spec/shared/app_root/app/models/forum.rb