Bring properties and product_properties controllers from spree_backend

This commit is contained in:
luisramos0
2019-11-08 17:18:04 +00:00
parent 314ecf6d90
commit af1eff9427
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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

View File

@@ -0,0 +1,6 @@
module Spree
module Admin
class PropertiesController < ResourceController
end
end
end