Edited app/models/blog_post.rb via GitHub

This commit is contained in:
Joe Sak 2011-05-10 15:46:36 -07:00
parent 887251e53c
commit 18f0f69810

View file

@ -3,7 +3,7 @@ require 'seo_meta'
class BlogPost < ActiveRecord::Base
is_seo_meta
is_seo_meta if self.table_exists?
default_scope :order => 'published_at DESC'
#.first & .last will be reversed -- consider a with_exclusive_scope on these?