Merge pull request #4674 from BrokenEagle/add-missing-associated-attributes

Add missing associated attributes
This commit is contained in:
evazion
2021-02-04 00:37:32 -06:00
committed by GitHub
7 changed files with 21 additions and 7 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