Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
2e9e9af9
Commit
2e9e9af9
authored
Nov 07, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve annotate
parent
5f69f665
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
buyer.rb
lib/shotengai/buyer.rb
+1
-0
series.rb
lib/shotengai/series.rb
+1
-1
snapshot.rb
lib/shotengai/snapshot.rb
+0
-1
No files found.
lib/shotengai/buyer.rb
View file @
2e9e9af9
...
...
@@ -38,6 +38,7 @@ module Shotengai
end
end
# Create snapshot from series.snapshots to make sure the right class of snapshot
def buy_it_immediately snapshot_param, order_params
ActiveRecord::Base.transaction do
order = self.
#{
collection_name
}
.create!(order_params)
...
...
lib/shotengai/series.rb
View file @
2e9e9af9
...
...
@@ -36,7 +36,7 @@ module Shotengai
# validate remark
validate
:check_remark_value
,
unless: :remark_template_empty?
[{
"key"
=>
"其他"
,
"val"
=>
"true"
}]
harray_accessor
:info_template
,
:detail_info_template
harray_accessor
:spec_value
,
:remark_value
,
decode:
true
...
...
lib/shotengai/snapshot.rb
View file @
2e9e9af9
...
...
@@ -113,7 +113,6 @@ module Shotengai
# 订单支付后 存储当时信息快照
def
copy_info
# cut_stock
self
.
update!
(
title:
series
.
title
,
original_price:
series
.
original_price
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment