Sha256: 0240a59bbf6cc6974a132137f31bc57a0bc1667bf42fbcc3a97e3476bc1f346c

Contents?: true

Size: 129 Bytes

Versions: 21

Compression:

Stored size: 129 Bytes

Contents

CSV.generate do |csv|
  csv << ['Code']
  @promotion.codes.order(:id).pluck(:value).each do |value|
    csv << [value]
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-1.3.0.beta1 app/views/spree/admin/promotion_codes/index.csv.ruby