app/controllers/almanac/posts_controller.rb in almanac-0.8.0 vs app/controllers/almanac/posts_controller.rb in almanac-0.9.0
- old
+ new
@@ -45,13 +45,9 @@
if @post.nil? and not params[:slug].empty?
redirect_to edit_post_path(params[:slug]), :notice => "Your post has to have a slug."
return
end
- if @post.published
- @comments = @post.comments.where(:spam => false)
- end
-
respond_with(@post) do |format|
format.html
end
end