Sha256: 8cf36c44d71b21826cc6a63c72aadbf8a92e389b344ad30b677a722cae938370

Contents?: true

Size: 436 Bytes

Versions: 49

Compression:

Stored size: 436 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

49 entries across 49 versions & 2 rubygems

Version Path
spree_backend-3.1.0.rc1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.8 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.6.1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.10 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.8 app/controllers/spree/admin/product_properties_controller.rb
solidus_backend-1.0.0.pre app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.0 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.0.rc4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.0.rc3 app/controllers/spree/admin/product_properties_controller.rb