Make sure we access keys via strings and not symbols

This commit is contained in:
Ufuk Kayserilioglu committed 2015-11-16 22:14:38 -05:00
1 parent 3be135572e
commit 4ef247f048
1 file changed
+3 -3
+3 -3
View File
@@ -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