Method: EffectivePostsHelper#render_recent_posts

Defined in:
app/helpers/effective_posts_helper.rb

#render_recent_posts(user: current_user, category: nil, limit: EffectivePosts.per_page) ⇒ Object



118
119
120
121
# File 'app/helpers/effective_posts_helper.rb', line 118

def render_recent_posts(user: current_user, category: nil, limit: EffectivePosts.per_page)
  posts = recent_posts(user: user, category: category, limit: limit)
  render partial: '/effective/posts/recent_posts', locals: { posts: posts }
end