summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-28 18:12:39 +0100
committerhukl <contact@smyck.org>2009-03-28 18:12:39 +0100
commit1b149d03320bd08f0977201b5662343707e15975 (patch)
tree86d8e9253d2a6f564c2d245f312941ea85761195 /app
parentfa58bb035feba5988f259e3318d529e05db8187b (diff)
reducing queries here as well - yay
Diffstat (limited to 'app')
-rw-r--r--app/models/page.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index 58f9682..45a05dc 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -45,7 +45,7 @@ class Page < ActiveRecord::Base
45 options[:tags].gsub(/\s/, ", "), 45 options[:tags].gsub(/\s/, ", "),
46 :match_all => true, 46 :match_all => true,
47 :order => "#{options[:order_by]} #{options[:order_direction]}", 47 :order => "#{options[:order_by]} #{options[:order_direction]}",
48 :include => :node, 48 :include => [:node, :globalize_translations],
49 :conditions => ["nodes.head_id = pages.id"], 49 :conditions => ["nodes.head_id = pages.id"],
50 :limit => options[:limit] 50 :limit => options[:limit]
51 ) 51 )