Fixed caster selection

This commit is contained in:
Prommah 2015-11-05 07:59:52 +00:00
parent a4f4f074ae
commit 67f603789f

2
app/views/matches/admin.html.haml Normal file → Executable file
View file

@ -34,7 +34,7 @@
- elsif match.can_update?(cuser, {:caster_id => cuser.id})
= form_for match do |f|
- if cuser.admin?
= f.collection_select :caster_id, Group.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"}
= f.collection_select :caster_id, User.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"}
- else
= f.hidden_field :caster_id, {:value => cuser.id}
= link_to "Take!", "#form_submit"