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