From c60e103d972310a4a1d8dcb076afdbd3fdc6a3b4 Mon Sep 17 00:00:00 2001
From: Connor Turland <connorturland@gmail.com>
Date: Mon, 26 Sep 2016 20:28:06 -0400
Subject: [PATCH] Update _switchmetacodes.html.erb

---
 app/views/shared/_switchmetacodes.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/shared/_switchmetacodes.html.erb b/app/views/shared/_switchmetacodes.html.erb
index 067d4d6b..bd6b8129 100644
--- a/app/views/shared/_switchmetacodes.html.erb
+++ b/app/views/shared/_switchmetacodes.html.erb
@@ -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