foodsoft/vendor/plugins/will_paginate/test/fixtures/topic.rb

7 lines
236 B
Ruby
Raw Normal View History

2009-01-06 11:49:19 +01:00
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