lib/reviewed/attachable.rb in reviewed-0.9.0 vs lib/reviewed/attachable.rb in reviewed-0.9.1
- old
+ new
@@ -14,10 +14,10 @@
attachments << attributes['attachments'].select { |x| x.tags.include?(tag.to_s) }
end
end
if fetch.present?
- attachments << fetch_attachments(opts.merge!(tags: fetch))
+ attachments << fetch_attachments(opts.merge!(tags: fetch)).to_a
end
else
attachments = fetch_attachments(opts).to_a
end