Sha256: 650ef22bba68f2ff09b3509ef4990516c2ef58f41dcf5fbe8c0ca997cea9ac71

Contents?: true

Size: 287 Bytes

Versions: 15

Compression:

Stored size: 287 Bytes

Contents

class Topic < ActiveRecord::Base
  has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC'
  belongs_to :project

  scope :mentions_activerecord, :conditions => ['topics.title LIKE ?', '%ActiveRecord%']
  scope :distinct, :select => "DISTINCT #{table_name}.*"
end

Version data entries

15 entries across 15 versions & 7 rubygems

Version Path
hobo_will_paginate-2.1.1 spec/fixtures/topic.rb
hobo_will_paginate-2.1.0 spec/fixtures/topic.rb
hobo-will_paginate-3.0.4.hobo spec/fixtures/topic.rb
will_paginate-3.0.4 spec/fixtures/topic.rb
will_paginate-3.0.3 spec/fixtures/topic.rb
will_paginate-3.0.2 spec/fixtures/topic.rb
will_paginate-3.0.1 spec/fixtures/topic.rb
will_paginate-3.0.0 spec/fixtures/topic.rb
will_paginate-3.0.pre4 spec/fixtures/topic.rb
f1sherman-will_paginate-3.0.pre3 spec/fixtures/topic.rb
elmer-will_paginate-3.0.0 spec/fixtures/topic.rb
path-will_paginate-3.0.pre2 spec/fixtures/topic.rb
will_paginate-3.0.pre2 spec/fixtures/topic.rb
will_paginate-rails3-3.0.pre spec/fixtures/topic.rb
will_paginate-3.0.pre spec/fixtures/topic.rb