Sha256: 82cb81cee40574562f9ed4a7dfd7f71da20f56749c0297ae9d06fcd244ca210d

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

Spree::Api::ApiHelpers.class_eval do
  def variant_attributes_with_additional_attributes
    variant_attributes_without_additional_attributes << :upc
    variant_attributes_without_additional_attributes << :mpc
    variant_attributes_without_additional_attributes << :gtin
  end

  alias_method_chain :variant_attributes, :additional_attributes

#  class_variable_set(:@@variant_attributes, class_variable_get(:@@variant_attributes).push(:upc))
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_variant_columns-2.3.5 app/helpers/spree/api/api_helpers_decorator.rb