diff options
| author | hukl <hukl@eight.local> | 2009-02-02 23:52:16 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-02 23:52:16 +0100 |
| commit | 356853c2884da7c105da4c03dec8648a04954d51 (patch) | |
| tree | 529ff5c062be94f904a907e207df3918170ec6a0 | |
| parent | 534fab3b76bdf8039f48052f53a0347bcf706acf (diff) | |
now again with custom order !
| -rw-r--r-- | app/models/page.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/page.rb b/app/models/page.rb index f947d59..f6c5ef2 100644 --- a/app/models/page.rb +++ b/app/models/page.rb | |||
| @@ -21,7 +21,10 @@ class Page < ActiveRecord::Base | |||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | options = defaults.merge options | 23 | options = defaults.merge options |
| 24 | debugger | 24 | |
| 25 | pages = Page.find_tagged_with(options[:flags], :match_all => true) | 25 | pages = Page.find_tagged_with( |
| 26 | options[:flags].gsub(/\s/, ", "), | ||
| 27 | :match_all => true, | ||
| 28 | :order => "#{options[:order_by]} #{options[:order_direction]}") | ||
| 26 | end | 29 | end |
| 27 | end \ No newline at end of file | 30 | end \ No newline at end of file |
