Add in missing available includes

This commit is contained in:
BrokenEagle
2021-01-22 02:43:53 +00:00
parent 6d867de20f
commit 5698847077
5 changed files with 17 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ class EmailsController < ApplicationController
def index
@email_addresses = authorize EmailAddress.visible(CurrentUser.user).paginated_search(params, count_pages: true)
@email_addresses = @email_addresses.includes(:user)
respond_with(@email_addresses)
respond_with(@email_addresses, model: "EmailAddress")
end
def show