mailr/vendor/plugins/will_paginate/spec/fixtures/topic.rb
2009-02-10 04:13:08 +10:00

7 lines
236 B
Ruby

class Topic < ActiveRecord::Base
has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC'
belongs_to :project
named_scope :mentions_activerecord, :conditions => ['topics.title LIKE ?', '%ActiveRecord%']
end