From 4ef247f048361199d75d7c37768a2337f12087be Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Mon, 16 Nov 2015 22:14:38 -0500 Subject: [PATCH] Make sure we access keys via strings and not symbols --- config.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.rb b/config.rb index c52562b..7ed68fe 100644 --- a/config.rb +++ b/config.rb @@ -98,10 +98,10 @@ end helpers do def themes - data.themes.sort_by { |theme| theme[:name] }.map do |theme| + data.themes.sort_by { |theme| theme['name'] }.map do |theme| OpenStruct.new(theme.merge( - slug: theme[:name].parameterize.underscore, - digest: Digest::MD5.new.hexdigest(theme[:colors]) + slug: theme['name'].parameterize.underscore, + digest: Digest::MD5.new.hexdigest(theme['colors']) )) end end