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

8 lines
199 B
Ruby

class Reply < ActiveRecord::Base
belongs_to :topic, :include => [:replies]
named_scope :recent, :conditions => ['replies.created_at > ?', 15.minutes.ago]
validates_presence_of :content
end