Edited app/models/blog_post.rb via GitHub
This commit is contained in:
parent
887251e53c
commit
18f0f69810
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ require 'seo_meta'
|
||||||
|
|
||||||
class BlogPost < ActiveRecord::Base
|
class BlogPost < ActiveRecord::Base
|
||||||
|
|
||||||
is_seo_meta
|
is_seo_meta if self.table_exists?
|
||||||
|
|
||||||
default_scope :order => 'published_at DESC'
|
default_scope :order => 'published_at DESC'
|
||||||
#.first & .last will be reversed -- consider a with_exclusive_scope on these?
|
#.first & .last will be reversed -- consider a with_exclusive_scope on these?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue