controllers: set @current_item globally in respond_with.
This commit is contained in:
@@ -24,7 +24,7 @@ class DmailsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@current_item = @dmail = Dmail.find(params[:id])
|
||||
@dmail = Dmail.find(params[:id])
|
||||
check_privilege(@dmail)
|
||||
@dmail.mark_as_read!
|
||||
respond_with(@dmail)
|
||||
|
||||
Reference in New Issue
Block a user