Sha256: 23cf1f0fd409daf113ee24da4f34240bd32fd6d0ca38d2954fa48df19bf39c8b

Contents?: true

Size: 181 Bytes

Versions: 7

Compression:

Stored size: 181 Bytes

Contents

# frozen_string_literal: true

CSV.generate do |csv|
  csv << ["Code"]
  @promotion_code_batch.promotion_codes.order(:id).pluck(:value).each do |value|
    csv << [value]
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
solidus_promotions-4.4.1 lib/views/backend/solidus_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_friendly_promotions-1.9.3 app/views/solidus_friendly_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_promotions-4.4.0 lib/views/backend/solidus_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_friendly_promotions-1.9.2 app/views/solidus_friendly_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_friendly_promotions-1.9.1 app/views/solidus_friendly_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_friendly_promotions-1.9.0 app/views/solidus_friendly_promotions/admin/promotion_code_batches/download.csv.ruby
solidus_friendly_promotions-1.0.0 app/views/solidus_friendly_promotions/admin/promotion_code_batches/download.csv.ruby