Sha256: 50931f2c4a2cbedb673a8def4c37d39be650758a85e28d716690d0fca2e9b295

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

module Spree
  module Admin
    module AttachmentsHelper
      def variants_sku_and_options_for(product)
        product.variants.map do |variant|
          [variant.sku_and_options_text, variant.id]
        end.insert(0, [I18n.t('spree.all'), product.master.id])
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_product_attachments-0.0.7 app/helpers/spree/admin/attachments_helper.rb
solidus_product_attachments-0.0.6 app/helpers/spree/admin/attachments_helper.rb
solidus_product_attachments-0.0.5 app/helpers/spree/admin/attachments_helper.rb
solidus_product_attachments-0.0.4 app/helpers/spree/admin/attachments_helper.rb
solidus_product_attachments-0.0.2 app/helpers/spree/admin/attachments_helper.rb
solidus_product_attachments-0.0.1 app/helpers/spree/admin/attachments_helper.rb