File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ def collections
6868 end
6969
7070 @collections = normalize_posts_meta ( @collections )
71- @collections . each_value do |meta |
72- normalize_categories ( meta )
71+ @collections . each_value do |collection |
72+ normalize_categories ( collection )
7373 end
7474
7575 @collections
@@ -142,8 +142,8 @@ def normalize_posts_meta(hash)
142142 hash
143143 end
144144
145- def normalize_categories ( meta )
146- meta_categories = meta [ "categories" ]
145+ def normalize_categories ( collection )
146+ meta_categories = collection [ "categories" ]
147147 for_collection = case meta_categories
148148 when Array
149149 meta_categories
@@ -152,7 +152,7 @@ def normalize_categories(meta)
152152 else
153153 [ ]
154154 end
155- meta [ "categories" ] = for_collection . to_set
155+ collection [ "categories" ] = for_collection . to_set
156156 end
157157
158158 def disabled_in_development?
You can’t perform that action at this time.
0 commit comments