aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin
diff options
context:
space:
mode:
authordjones <dgjones@gmail.com>2010-09-21 17:34:35 +1200
committerdjones <dgjones@gmail.com>2010-09-21 17:34:35 +1200
commit9a2906c8251448a13b887786cb16082dbf2cba1f (patch)
treec843a32cfbf5f86b9c71e36bccc0dac221648ff6 /app/controllers/admin
parent0993314625a7fea5120da085f5f5c58b2f8435d8 (diff)
downloadrefinerycms-blog-9a2906c8251448a13b887786cb16082dbf2cba1f.tar.gz
refinerycms-blog-9a2906c8251448a13b887786cb16082dbf2cba1f.tar.bz2
refinerycms-blog-9a2906c8251448a13b887786cb16082dbf2cba1f.zip
use published at in more places
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/blog/comments_controller.rb2
-rw-r--r--app/controllers/admin/blog/posts_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/blog/comments_controller.rb b/app/controllers/admin/blog/comments_controller.rb
index 709d86d..0dc1db5 100644
--- a/app/controllers/admin/blog/comments_controller.rb
+++ b/app/controllers/admin/blog/comments_controller.rb
@@ -2,7 +2,7 @@ class Admin::Blog::CommentsController < Admin::BaseController
crudify :blog_comment,
:title_attribute => :name,
- :order => 'created_at DESC'
+ :order => 'published_at DESC'
def index
@blog_comments = BlogComment.unmoderated
diff --git a/app/controllers/admin/blog/posts_controller.rb b/app/controllers/admin/blog/posts_controller.rb
index 402748e..bd5dd49 100644
--- a/app/controllers/admin/blog/posts_controller.rb
+++ b/app/controllers/admin/blog/posts_controller.rb
@@ -2,7 +2,7 @@ class Admin::Blog::PostsController < Admin::BaseController
crudify :blog_post,
:title_attribute => :title,
- :order => 'created_at DESC'
+ :order => 'published_at DESC'
before_filter :find_all_categories,
:only => [:new, :edit, :create, :update]