mailr/vendor/plugins/will_paginate/spec/fixtures/reply.rb

8 lines
199 B
Ruby
Raw Normal View History

2009-02-09 19:13:08 +01:00
class Reply < ActiveRecord::Base
belongs_to :topic, :include => [:replies]
named_scope :recent, :conditions => ['replies.created_at > ?', 15.minutes.ago]
validates_presence_of :content
end