diff options
Diffstat (limited to 'app/models/sidebar_blog_category.rb')
-rw-r--r-- | app/models/sidebar_blog_category.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/sidebar_blog_category.rb b/app/models/sidebar_blog_category.rb index 53d15af..fb867ac 100644 --- a/app/models/sidebar_blog_category.rb +++ b/app/models/sidebar_blog_category.rb @@ -2,7 +2,7 @@ class SidebarBlogCategory < SidebarModule def initialize(category) @title = category.title @position = category.sidebar_position - @posts = category.posts.recent(5) + @posts = category.posts.recent(category.sidebar_items) end def body |