Sha256: 4a7fb31101ba44244e31c8796dad7836764162c829dd692884631bf45184ad9c

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

module Workarea
  class GiftWrappingSeeds
    def perform
      puts 'Adding gift wrapping options...'

      Workarea::Pricing::Sku.create!(
        id: 'GIFT_WRAP_1',
        prices: [{ regular: 1.to_m }]
      )
      Workarea::Catalog::GiftWrap.create!(name: 'Basic', sku: 'GIFT_WRAP_1')

      Workarea::Pricing::Sku.create!(
        id: 'GIFT_WRAP_2',
        prices: [{ regular: 2.to_m }]
      )
      Workarea::Catalog::GiftWrap.create!(name: 'Fancy', sku: 'GIFT_WRAP_2')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-gift_wrapping-1.3.0 app/seeds/workarea/gift_wrapping_seeds.rb
workarea-gift_wrapping-1.2.1 app/seeds/workarea/gift_wrapping_seeds.rb