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
4e810345
Commit
4e810345
authored
Oct 12, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the copy of info in snapshot
parent
6a67da18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
snapshot.rb
lib/shotengai/snapshot.rb
+2
-4
No files found.
lib/shotengai/snapshot.rb
View file @
4e810345
...
@@ -37,8 +37,8 @@ module Shotengai
...
@@ -37,8 +37,8 @@ module Shotengai
validates
:count
,
numericality:
{
only_integer:
true
,
greater_than:
0
}
validates
:count
,
numericality:
{
only_integer:
true
,
greater_than:
0
}
custom_hash_columns
:spec
,
:info
,
:remark
custom_hash_columns
:spec
,
:info
,
:remark
column_has_children
:meta
,
children:
[
'product'
,
's
napshot
'
],
as: :snapshot
column_has_children
:meta
,
children:
[
'product'
,
's
eries
'
],
as: :snapshot
column_has_children
:info
,
children:
[
'
product'
,
'snapshot
'
],
as: :snapshot
column_has_children
:info
,
children:
[
'
series
'
],
as: :snapshot
validate
:cannot_edit
,
if: :order_was_paid
validate
:cannot_edit
,
if: :order_was_paid
before_destroy
:cannot_edit
,
if: :order_was_paid
before_destroy
:cannot_edit
,
if: :order_was_paid
...
@@ -106,7 +106,6 @@ module Shotengai
...
@@ -106,7 +106,6 @@ module Shotengai
original_price:
series
.
original_price
,
original_price:
series
.
original_price
,
price:
series
.
price
,
price:
series
.
price
,
spec:
series
.
spec
,
spec:
series
.
spec
,
info:
series
.
info
,
banners:
series
.
banners
,
banners:
series
.
banners
,
cover_image:
series
.
cover_image
,
cover_image:
series
.
cover_image
,
detail:
series
.
detail
,
detail:
series
.
detail
,
...
@@ -116,7 +115,6 @@ module Shotengai
...
@@ -116,7 +115,6 @@ module Shotengai
snapshot:
meta
,
snapshot:
meta
,
},
},
full_info:
{
full_info:
{
product:
product
.
info
,
series:
series
.
info
,
series:
series
.
info
,
snapshot:
info
,
snapshot:
info
,
}
}
...
...
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