Commit 1f2a351a by ivan Lan

Fix validation

parent ca2f0516
......@@ -157,7 +157,9 @@ module Shotengai
# spec 字段
def check_spec_value
errors.add(:spec_value, 'spec 与 所给系列不符。') unless spec_value.nil? || spec_value == series.spec_value
p spec_value
p series.spec_value
errors.add(:spec_value, 'spec 与 所给系列不符。') unless spec_value.nil? || spec_value.keys == series.spec_value.keys
end
def remark_template_empty?
......
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