Sha256: 7d741601f000c2317c6561e8d40ac2a52d96fd1af809b9a76b5265fabd99b58a

Contents?: true

Size: 478 Bytes

Versions: 29

Compression:

Stored size: 478 Bytes

Contents

module Spree
  module Api
    module V2
      module Platform
        class PromotionRulesController < ResourceController
          include ::Spree::Api::V2::Platform::PromotionRuleParams

          private

          def model_class
            Spree::PromotionRule
          end

          def scope_includes
            [:promotion]
          end

          def spree_permitted_attributes
            super + rule_params
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.10.0 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.9.0 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.8.3 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.8.2 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.7.3 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.6 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.5.5 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.4.1 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.5.4 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.5 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.7.2 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.7.1 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.4 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.7.0 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.3 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.2 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.1 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.6.0 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb
spree_api-4.5.3 app/controllers/spree/api/v2/platform/promotion_rules_controller.rb