metamagic 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/metamagic/helper_methods.rb +8 -0
- metadata +3 -3
@@ -42,6 +42,14 @@ module Metamagic
|
|
42
42
|
if tag[:name] == :title
|
43
43
|
out << content_tag(:title, tag[:content])
|
44
44
|
else
|
45
|
+
# replace array with comma separated list
|
46
|
+
tag.each_pair do |key, value|
|
47
|
+
if value.is_a?(Array)
|
48
|
+
tag[key] = value.join(", ")
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# add tag
|
45
53
|
out << tag(:meta, tag)
|
46
54
|
end
|
47
55
|
end
|
metadata
CHANGED