aboutsummaryrefslogblamecommitdiffstats
path: root/app/models/sidebar_blog_category.rb
blob: 53d15af0a4fa5cdf7d438120126e53b594eb8499 (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(5)
  end

  def body
    @posts
  end

end