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.14 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.13 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.12 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.11 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.10 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.8 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.10 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.0 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.0.rc4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.0.rc3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.1.0.rc2 app/controllers/spree/admin/product_properties_controller.rb