diff options
author | francis <francis> | 2008-03-31 23:19:16 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-31 23:19:16 +0000 |
commit | 13a241e7b7d02eee5186c2df8283e80163418be6 (patch) | |
tree | 0011834420b8faf48ff2bc8b82f4ff50df296504 /app/controllers/general_controller.rb | |
parent | 7a52e4eab86dc13f42161e925f00715f0cbf70a1 (diff) |
Sort order specially for RSS
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 4eb671af6..16f34f1b8 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.13 2008-03-31 19:15:30 francis Exp $ +# $Id: general_controller.rb,v 1.14 2008-03-31 23:19:16 francis Exp $ class GeneralController < ApplicationController @@ -61,6 +61,8 @@ class GeneralController < ApplicationController order = nil elsif @sortby == 'newest' order = 'created_at desc' + elsif @sortby == 'described' + order = 'last_described_at desc' # use this for RSS else raise "Unknown sort order " + @sortby end |