controllers: set @current_item globally in respond_with.
This commit is contained in:
@@ -19,7 +19,7 @@ class PostsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@current_item = @post = Post.find(params[:id])
|
||||
@post = Post.find(params[:id])
|
||||
|
||||
@comments = @post.comments
|
||||
@comments = @comments.includes(:creator)
|
||||
|
||||
Reference in New Issue
Block a user