Sha256: 1400ccf15df87a17797750f4fb93310f134b61e3a20961787cd16c7230ad45c9

Contents?: true

Size: 433 Bytes

Versions: 24

Compression:

Stored size: 433 Bytes

Contents

module Spree
  module Admin
    class ProductPropertiesController < ResourceController
      belongs_to 'spree/product', find_by: :slug
      before_action :find_properties
      before_action :setup_property, only: :index

      private
        def find_properties
          @properties = Spree::Property.pluck(:name)
        end

        def setup_property
          @product.product_properties.build
        end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_backend-3.2.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.8 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.0 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.0.rc4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.0.rc3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.0.rc2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.3.0.rc1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.2.1 app/controllers/spree/admin/product_properties_controller.rb