aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/blog_category.rb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-16 01:15:05 -0600
committerJoe Sak <joe@joesak.com>2011-02-16 01:15:05 -0600
commit7046ba73fe409c7d8202c5f441564200d1086c23 (patch)
treea178e45dee1072fbe24fd673b1e2d22cbfcac3e1 /app/models/blog_category.rb
parentd5ffea8e887799ccc30d9fa1e0a70b01c232abd0 (diff)
downloadrefinerycms-blog-7046ba73fe409c7d8202c5f441564200d1086c23.tar.gz
refinerycms-blog-7046ba73fe409c7d8202c5f441564200d1086c23.tar.bz2
refinerycms-blog-7046ba73fe409c7d8202c5f441564200d1086c23.zip
default_scope :order => 'published_at DESC'
move "next" to << self to use exclusive scope
Diffstat (limited to 'app/models/blog_category.rb')
-rw-r--r--app/models/blog_category.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blog_category.rb b/app/models/blog_category.rb
index fbd5465..bc0165a 100644
--- a/app/models/blog_category.rb
+++ b/app/models/blog_category.rb
@@ -1,7 +1,7 @@
class BlogCategory < ActiveRecord::Base
has_many :categorizations
- has_many :posts, :through => :categorizations, :source => :blog_post, :order => 'published_at DESC'
+ has_many :posts, :through => :categorizations, :source => :blog_post
acts_as_indexed :fields => [:title]