Update _switchmetacodes.html.erb

This commit is contained in:
Connor Turland 2016-09-26 20:28:06 -04:00 committed by GitHub
parent 7150b9fcce
commit c60e103d97

View file

@ -5,7 +5,7 @@
<% metacodes = current_user.settings.metacodes %>
<% selectedSet = metacodes[0].include?("metacodeset") ? metacodes[0].sub("metacodeset-","") : "custom" %>
<% allMetacodeSets = MetacodeSet.order("name").all %>
<% allMetacodeSets = MetacodeSet.order("name").all.to_a %>
<% if selectedSet == "custom"
index = allMetacodeSets.length
else