aboutsummaryrefslogblamecommitdiffstats
path: root/app/models/sidebar_blog_category.rb
blob: fb867ac968adf4f52a0295005f3ffe878c165b0d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                         
                                                          






          
class SidebarBlogCategory < SidebarModule
  def initialize(category)
    @title = category.title
    @position = category.sidebar_position
    @posts = category.posts.recent(category.sidebar_items)
  end

  def body
    @posts
  end

end