Sha256: cc1e1c3fab9b0fd3ee9a58e12f4d080d4ea8441a535aebd963d7ce840acd270c
Contents?: true
Size: 509 Bytes
Versions: 5
Compression:
Stored size: 509 Bytes
Contents
csv = (Manifestation.csv_header(role: current_user_role_name) + Item.csv_header(role: current_user_role_name)).to_csv(col_sep: "\t") @manifestations.map{|manifestation| if manifestation.items.empty? csv += manifestation.to_hash(role: current_user_role_name).values.to_csv(col_sep: "\t") else manifestation.items.each do |item| csv += (manifestation.to_hash(role: current_user_role_name).values + item.to_hash(role: current_user_role_name).values).to_csv(col_sep: "\t") end end } csv
Version data entries
5 entries across 5 versions & 1 rubygems