aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-31 23:19:16 +0000
committerfrancis <francis>2008-03-31 23:19:16 +0000
commit13a241e7b7d02eee5186c2df8283e80163418be6 (patch)
tree0011834420b8faf48ff2bc8b82f4ff50df296504 /app/controllers/general_controller.rb
parent7a52e4eab86dc13f42161e925f00715f0cbf70a1 (diff)
Sort order specially for RSS
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb4
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