From 037e16ca834377a03127fa8a86c6d5041f8ca8f3 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 28 Feb 2009 18:00:24 +0100 Subject: well, seems i forgot the limit clause there --- app/models/page.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/page.rb b/app/models/page.rb index ec2198c..2cf9d72 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -38,7 +38,8 @@ class Page < ActiveRecord::Base :match_all => true, :order => "#{options[:order_by]} #{options[:order_direction]}", :include => :node, - :conditions => ["nodes.head_id = pages.id"] + :conditions => ["nodes.head_id = pages.id"], + :limit => options[:limit] ) end -- cgit v1.3