security bingo!
[leap_website.git] / app / helpers / blog_helper.rb
index 20e4113..9e58fc8 100644 (file)
@@ -3,7 +3,7 @@ module BlogHelper
   def recent_blog_summaries(path)
     root = StaticPage.find(path)
     if root
-      pages = root.all_children.order_by(:posted_at).limit(PAGINATION_SIZE)
+      pages = root.all_children.order_by(:posted_at, :direction => :desc).limit(PAGINATION_SIZE)
       haml do
         pages.each do |page|
           haml render(:partial => 'layouts/blog/summary', :locals => {:page => page})