remove deprecation warnings about the template handler in rails 3.2
This commit is contained in:
parent
af1109dcf7
commit
133c9ee0c3
1 changed files with 2 additions and 2 deletions
|
|
@ -28,9 +28,9 @@ class PostsController < ApplicationController
|
|||
mark_corresponding_notification_read if user_signed_in?
|
||||
|
||||
respond_to do |format|
|
||||
format.html{ gon.post = PostPresenter.new(@post, current_user); render 'posts/show.html.haml' }
|
||||
format.html{ gon.post = PostPresenter.new(@post, current_user); render 'posts/show' }
|
||||
format.xml{ render :xml => @post.to_diaspora_xml }
|
||||
format.mobile{render 'posts/show.mobile.haml', :layout => "application"}
|
||||
format.mobile{render 'posts/show', :layout => "application"}
|
||||
format.json{ render :json => PostPresenter.new(@post, current_user) }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue