Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @posts = Post.search_by_title(search_param).default_order
- @posts = @posts.select do |post|
- (post.author == selected_author || any_author?) && (post.published? || current_admin)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement