Sha256: 7e9bbeb1b1e696e1fbc39e9855bb10be7f996d6034196ac58c0d14a1263485f6

Contents?: true

Size: 446 Bytes

Versions: 39

Compression:

Stored size: 446 Bytes

Contents

module Spree
  module Admin
    class ProductPropertiesController < ResourceController
      belongs_to 'spree/product', :find_by => :permalink
      before_filter :find_properties
      before_filter :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

39 entries across 39 versions & 2 rubygems

Version Path
spree_backend-2.1.12 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.11 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.10 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.13 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.8 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.12 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.11 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.10 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.5 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.9 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.4 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.8 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.3 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.7 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.2 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.0.6 app/controllers/spree/admin/product_properties_controller.rb
spree_backend-2.1.1 app/controllers/spree/admin/product_properties_controller.rb