Permalink
Browse files

use published at in more places

  • Loading branch information...
djones committed Sep 21, 2010
1 parent 0993314 commit 9a2906c8251448a13b887786cb16082dbf2cba1f
@@ -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
@@ -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]
View
@@ -10,7 +10,7 @@ class BlogPost < ActiveRecord::Base
has_friendly_id :title, :use_slug => true
- default_scope :order => "created_at DESC"
+ default_scope :order => "published_at DESC"
if Rails.version < '3.0.0'
named_scope :live, lambda { {:conditions => ["published_at < ? and draft = ?", Time.now, false]} }
@@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title post.title
xml.description post.body
- xml.pubDate post.created_at.to_s(:rfc822)
+ xml.pubDate post.published_at.to_s(:rfc822)
xml.link blog_post_url(post)
end
end
@@ -11,7 +11,7 @@
<% content_for :body_content_left do %>
<p class='posted_at'>
- <%= t('blog.shared.posts.created_at', :when => @blog_post.created_at.strftime('%d %B %Y')) %>.
+ <%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>.
<% if (categories = @blog_post.categories).any? %>
<span class='filed_in'>
View
@@ -42,7 +42,7 @@ def url
class << self
def version
- %q{1.0.rc10}
+ %q{1.0.rc11}
end
end
end

0 comments on commit 9a2906c

Please sign in to comment.