metamagic 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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