Sha256: eea64dbb24998c29ef402f10d5e0d6e0ebab7c4476da8bdcf5c4bb4512fbede4

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

Spree::Api::V1::ProductsController.class_eval do

  def winkelstraat_stock
    csv = Spree::Variant.winkelstraat_stock_csv
    send_data csv, filename: "ws-stock-#{Date.today}.csv"
  end

  def winkelstraat_article
    csv = Spree::Product.winkelstraat_csv
    send_data csv, filename: "ws-articles-#{Date.today}.csv"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_winkelstraat-3.1.0.21 app/controllers/api/v1/products_controller_decorator.rb
spree_winkelstraat-3.1.0.20 app/controllers/api/v1/products_controller_decorator.rb