From a3e4ab5ca0e0b0f175384f7d0471328da77dac04 Mon Sep 17 00:00:00 2001 From: James Mason Date: Tue, 9 Sep 2014 17:49:22 -0700 Subject: [PATCH] there's no such thing as Array#to_h (cherry picked from commit 780bd84bc17f55b0ece1d86a2b224f0340495c73) --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index eea4e83f..2e73ad45 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -669,7 +669,7 @@ class Conference < ActiveRecord::Base hash[key] = 0 end end - hash.sort.to_h + Hash[ hash.sort ] end ##