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

8 lines
199 B
Ruby
Raw Normal View History

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