Sha256: 03b3d70a479d54e678eb8c37f41a6b0dfeb98d8ddb5cafd1e0bc93d242ca907b
Contents?: true
Size: 347 Bytes
Versions: 6
Compression:
Stored size: 347 Bytes
Contents
module Reviewed class Product < Base def attachments(tag=nil) if tag.present? @attributes[:attachments].select do |attachment| attachment_tags = attachment.tags || [] attachment_tags.map(&:downcase).include?(tag.downcase) end else @attributes[:attachments] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems