summaryrefslogtreecommitdiff
path: root/vendor/plugins/will_paginate/test/fixtures/reply.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-17 12:47:49 +0100
committerhukl <contact@smyck.org>2009-02-17 12:47:49 +0100
commit3cdcb5ca02a94b2b342c30903a27d47d35d46e55 (patch)
treeef3e1154fe262561b3955c07edcaee3824a21f47 /vendor/plugins/will_paginate/test/fixtures/reply.rb
parent7a282f2605f6fb3689940e5c7072b4801653deb2 (diff)
added will_paginate plugin
Diffstat (limited to 'vendor/plugins/will_paginate/test/fixtures/reply.rb')
-rw-r--r--vendor/plugins/will_paginate/test/fixtures/reply.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/plugins/will_paginate/test/fixtures/reply.rb b/vendor/plugins/will_paginate/test/fixtures/reply.rb
new file mode 100644
index 00000000..ecaf3c1f
--- /dev/null
+++ b/vendor/plugins/will_paginate/test/fixtures/reply.rb
@@ -0,0 +1,7 @@
1class Reply < ActiveRecord::Base
2 belongs_to :topic, :include => [:replies]
3
4 named_scope :recent, :conditions => ['replies.created_at > ?', 15.minutes.ago]
5
6 validates_presence_of :content
7end