Created
September 26, 2017 17:45
-
-
Save cored/a32b365f2eda1eaf54c12afe88fbbd62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def attachments_for(shipment_items) | |
shipment_items.map(&:case_pack).uniq.map do |case_pack| | |
{ | |
display_name: "Case Pack Label - SSCC:#{case_pack.shipping_serial_code}", | |
url: case_pack.case_pack_label.url.to_s, | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment