SM MS remove instance var from mobile post view

This commit is contained in:
Maxwell Salzberg 2011-10-15 21:18:51 -07:00
parent ea0240d6f8
commit ea700716ab
2 changed files with 1 additions and 5 deletions

View file

@ -30,10 +30,6 @@ class PostsController < ApplicationController
notification.save
end
if is_mobile_device?
@comments = @post.comments
end
respond_to do |format|
format.xml{ render :xml => @post.to_diaspora_xml }
format.mobile{render 'posts/show.mobile.haml'}

View file

@ -37,7 +37,7 @@
= post.likes.size
%ul.comments
= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => post}
= render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post}
%li.comment.add_comment_bottom_link_container
= link_to "Add a comment", new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'