app/views/admin/users/_form.html.erb in snapuser-0.1.0 vs app/views/admin/users/_form.html.erb in snapuser-0.1.1
- old
+ new
@@ -16,10 +16,10 @@
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
</li>
<li>
<%= f.label :level %>
- <%= f.select :level, {"superadmin" => "1", "admin" => "2", "leader" => "3", "uploader" => "4", "member" => "5"} %>
+ <%= f.select :level, Snapuser.levels %>
</li>
</ul>
<div id="clear"></div>
<ul class="center">
\ No newline at end of file