Commit 2e9e9af9 by ivan Lan

Improve annotate

parent 5f69f665
...@@ -38,6 +38,7 @@ module Shotengai ...@@ -38,6 +38,7 @@ module Shotengai
end end
end end
# Create snapshot from series.snapshots to make sure the right class of snapshot
def buy_it_immediately snapshot_param, order_params def buy_it_immediately snapshot_param, order_params
ActiveRecord::Base.transaction do ActiveRecord::Base.transaction do
order = self.#{collection_name}.create!(order_params) order = self.#{collection_name}.create!(order_params)
......
...@@ -36,7 +36,7 @@ module Shotengai ...@@ -36,7 +36,7 @@ module Shotengai
# validate remark # validate remark
validate :check_remark_value, unless: :remark_template_empty? validate :check_remark_value, unless: :remark_template_empty?
[{"key"=>"其他", "val"=>"true"}]
harray_accessor :info_template, :detail_info_template harray_accessor :info_template, :detail_info_template
harray_accessor :spec_value, :remark_value, decode: true harray_accessor :spec_value, :remark_value, decode: true
......
...@@ -113,7 +113,6 @@ module Shotengai ...@@ -113,7 +113,6 @@ module Shotengai
# 订单支付后 存储当时信息快照 # 订单支付后 存储当时信息快照
def copy_info def copy_info
# cut_stock
self.update!( self.update!(
title: series.title, title: series.title,
original_price: series.original_price, original_price: series.original_price,
......
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