Commit 30d15ee6 by ivan Lan

Add manager to series & snapshot

parent b445d46e
......@@ -28,7 +28,7 @@ module Shotengai
validate :uniq_spec
validate :validate_stock
delegate :title, :detail, :banners, :cover_image, :status, :status_zh, to: :product
delegate :title, :detail, :banners, :cover_image, :status, :status_zh, :manager, to: :product
# where("spec->'$.\"颜色\"' = ? and spec->'$.\"大小\"' = ?" ,红色,S)
scope :query_spec_with_product, ->(val, product) {
......
......@@ -59,6 +59,8 @@ module Shotengai
require file_path if File.exist?(file_path)
end
end
delegate :manager, to: :series
# 支付前 信息 delegate to series
%i{
......
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