File: topic.rb

package info (click to toggle)
ruby-will-paginate 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: ruby: 2,734; sh: 33; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
class Topic < ActiveRecord::Base
  has_many :replies, :dependent => :destroy
  belongs_to :project

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