Commit 88461037 by ivan Lan

Add Customer ProductSeries Controller

parent dfbbc800
module Shotengai
module Controller
module Customer
class ProductSeriesController < Shotengai::Controller::Base
self.resources = ProductSeries
self.template_dir = 'shotengai/customer/series/'
remove_actions :create, :update, :destroy
default_query do |resource, params|
resource.where(
params[:product_id] && { shotengai_product_id: params[:product_id] }
)
end
private
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment