Sha256: f765daf3ca1027b0f197fa572a9176540e7867d7b21d19975628c81b939f99f9

Contents?: true

Size: 357 Bytes

Versions: 26

Compression:

Stored size: 357 Bytes

Contents

module Spree
  module Api
    module V2
      module Platform
        class VariantsController < ResourceController
          private

          def model_class
            Spree::Variant
          end

          def spree_permitted_attributes
            super + [:option_value_ids, :price, :currency]
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_api-4.5.2 app/controllers/spree/api/v2/platform/variants_controller.rb
spree_api-4.5.1 app/controllers/spree/api/v2/platform/variants_controller.rb
spree_api-4.5.0 app/controllers/spree/api/v2/platform/variants_controller.rb
spree_api-4.4.0 app/controllers/spree/api/v2/platform/variants_controller.rb
spree_api-4.4.0.rc2 app/controllers/spree/api/v2/platform/variants_controller.rb
spree_api-4.4.0.rc1 app/controllers/spree/api/v2/platform/variants_controller.rb