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-2.4.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-3.0.0.rc1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.1 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.0 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.0.rc3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.0.rc2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.4.0.rc1 app/controllers/spree/admin/product_properties_controller.rb