lib/pinpress.rb in pinpress-1.5.0 vs lib/pinpress.rb in pinpress-1.5.1
- old
+ new
@@ -214,13 +214,11 @@
# @return [String]
def tag_yield(template, opts)
output = ''
PinPress.execute_template(opts) do |data|
tags = []
- ignored_tags = configuration.pinpress.ignored_tags
-
data.each { |i| tags += i[:tag] }
- tags = (tags -= ignored_tags if ignored_tags).uniq.map do |t|
+ tags = (tags -= template.ignored_tags if template.ignored_tags).uniq.map do |t|
{ tag: t, count: tags.count(t) }
end
output += template[:opener] if template[:opener]
tags.each do |t|