Make sure we access keys via strings and not symbols
This commit is contained in:
1 parent
3be135572e
commit
4ef247f048
1 file changed
+3
-3
@@ -98,10 +98,10 @@ end
|
|||||||
|
|
||||||
helpers do
|
helpers do
|
||||||
def themes
|
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(
|
OpenStruct.new(theme.merge(
|
||||||
slug: theme[:name].parameterize.underscore,
|
slug: theme['name'].parameterize.underscore,
|
||||||
digest: Digest::MD5.new.hexdigest(theme[:colors])
|
digest: Digest::MD5.new.hexdigest(theme['colors'])
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user