Commit ca2f0516 by ivan Lan

Fix spec accessor of snapshot

parent 4e1b9b9d
......@@ -38,8 +38,10 @@ module Shotengai
validate :check_remark_value, unless: :remark_template_empty?
validates :count, numericality: { only_integer: true, greater_than: 0 }
template_with_value_getters :spec, :remark, :info, :detail_info, delegate_template_to: :series
harray_accessor :spec_value, decode: true
template_with_value_getters :spec, :remark, :info, :detail_info, delegate_template_to: :series
column_has_implants :meta, implants: ['product', 'series'], as: :snapshot
column_has_implants :info_value, implants: ['detail'], as: :snapshot
......
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