Commit 63ec9993 by ivan Lan

Use :shotengai_product instead of :product in :delegate

parent be294ceb
......@@ -41,14 +41,14 @@ module Shotengai
harray_accessor :spec_value, :remark_value, decode: true
template_with_value_getters :info, :detail_info, value_in_template: true
template_with_value_getters :spec, :remark, delegate_template_to: :product
template_with_value_getters :spec, :remark, delegate_template_to: :shotengai_product
# full_info_template: { optional: d, detail: detail_info_template }
column_has_implants :info_template, implants: ['detail'], as: 'optional'
# generate_hash_value_column_for :spec, :remark, delegate_template_to: :product
delegate :title, :detail, :banners, :cover_image, :status, :status_zh, :manager, to: :product
delegate :title, :detail, :banners, :cover_image, :status, :status_zh, :manager, to: :shotengai_product
belongs_to :shotengai_product, foreign_key: :shotengai_product_id,
class_name: 'Shotengai::Product'#, touch: true
......
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