Sha256: 7dc7497f8d3435a064d3393fe72d711b1b761c156faf6844d4b33eb2ddd20507

Contents?: true

Size: 202 Bytes

Versions: 20

Compression:

Stored size: 202 Bytes

Contents

class Topic < ActiveRecord::Base
  has_many :replies, :dependent => :destroy
  belongs_to :project

  scope :mentions_activerecord, lambda {
    where(['topics.title LIKE ?', '%ActiveRecord%'])
  }
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
will_paginate-3.3.1 spec/fixtures/topic.rb
will_paginate-3.3.0 spec/fixtures/topic.rb
will_paginate-3.2.1 spec/fixtures/topic.rb
will_paginate-3.2.0 spec/fixtures/topic.rb
will_paginate-3.1.8 spec/fixtures/topic.rb
will_paginate-3.1.7 spec/fixtures/topic.rb
will_paginate-3.1.6 spec/fixtures/topic.rb
will_paginate-3.0.12 spec/fixtures/topic.rb
will_paginate-3.1.5 spec/fixtures/topic.rb
will_paginate-3.0.11 spec/fixtures/topic.rb
will_paginate-3.1.3 spec/fixtures/topic.rb
will_paginate-3.0.10 spec/fixtures/topic.rb
will_paginate-3.0.9 spec/fixtures/topic.rb
will_paginate-3.1.2 spec/fixtures/topic.rb
will_paginate-3.1.1 spec/fixtures/topic.rb
will_paginate-3.0.8 spec/fixtures/topic.rb
will_paginate-3.1.0 spec/fixtures/topic.rb
will_paginate_seo-3.0.4 spec/fixtures/topic.rb
will_paginate-3.0.7 spec/fixtures/topic.rb
will_paginate-3.0.6 spec/fixtures/topic.rb