summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/page.rb3
1 files changed, 2 insertions, 1 deletions
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
38 :match_all => true, 38 :match_all => true,
39 :order => "#{options[:order_by]} #{options[:order_direction]}", 39 :order => "#{options[:order_by]} #{options[:order_direction]}",
40 :include => :node, 40 :include => :node,
41 :conditions => ["nodes.head_id = pages.id"] 41 :conditions => ["nodes.head_id = pages.id"],
42 :limit => options[:limit]
42 ) 43 )
43 44
44 end 45 end