Provide full Contact object to all_domains() instead of just id

This commit is contained in:
Karl Erik Õunapuu 2020-05-22 10:37:52 +03:00 committed by Alex Sherman
parent e08f69a1cc
commit f39fb1dc8b
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ class Registrant::ContactsController < RegistrantController
before_action :set_contact, only: [:show]
def show
@requester_contact = Contact.find_by(ident: current_registrant_user.ident).id
@requester_contact = Contact.find_by(ident: current_registrant_user.ident)
authorize! :read, @contact
end