diff options
| -rw-r--r-- | app/models/page.rb | 2 |
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 | ) |
