fix admin/registrations#update

This commit is contained in:
Stella Rouzi 2016-05-01 18:50:07 +03:00
parent a1ac27fa58
commit 6bcecbd219
4 changed files with 15 additions and 9 deletions

View file

@ -27,10 +27,11 @@
%td
= registration.id
%td
= registration.name
- registration.user.roles.each do |role|
- if role.resource == @conference
%span.label.label-info= role.name.titleize
= registration.name.present? ? registration.name : registration.username
%br
- registration.user.roles.where(resource: @conference).each do |role|
%span.label.label-info
= role.name.titleize
%td
= registration.email
%td