Improve registrant area

This commit is contained in:
Artur Beljajev 2018-08-03 22:35:53 +03:00
parent 43a70863cf
commit 638167e3cb
14 changed files with 119 additions and 80 deletions

View file

@ -1,5 +1,6 @@
class Registrant::ContactsController < RegistrantController
helper_method :domain_ids
helper_method :domain
def show
@contact = Contact.where(id: contacts).find_by(id: params[:id])
@ -26,4 +27,8 @@ class Registrant::ContactsController < RegistrantController
BusinessRegistryCache.fetch_by_ident_and_cc(ident, ident_cc).associated_domain_ids
end
end
def domain
Domain.find(params[:domain_id])
end
end