diff options
| author | hukl <contact@smyck.org> | 2009-02-28 18:00:24 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-28 18:00:24 +0100 |
| commit | 037e16ca834377a03127fa8a86c6d5041f8ca8f3 (patch) | |
| tree | a8bd117f07d12ce5f8d1649e8ecdc39c95566bed | |
| parent | 4db284dfa4e130c53d00ad7d36a4593e2e181edb (diff) | |
well, seems i forgot the limit clause there
| -rw-r--r-- | app/models/page.rb | 3 |
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 |
