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
76881578
Commit
76881578
authored
Mar 16, 2018
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snapshot validation :check_spec_value to ignore ary order
parent
4e474b98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
order.rb
lib/shotengai/order.rb
+1
-0
snapshot.rb
lib/shotengai/snapshot.rb
+1
-1
No files found.
lib/shotengai/order.rb
View file @
76881578
...
...
@@ -185,6 +185,7 @@ module Shotengai
super
end
# beause relation :snapshots has many types, so do not use order.snapshot to create or init a obj
def
can_buy
*
good_class_names
good_classes
=
good_class_names
.
map
(
&
:constantize
)
# 所有snapshot
...
...
lib/shotengai/snapshot.rb
View file @
76881578
...
...
@@ -159,7 +159,7 @@ module Shotengai
# spec 字段
def
check_spec_value
errors
.
add
(
:spec_value
,
'spec 与 所给系列不符。'
)
unless
spec_value
.
nil?
||
spec_value
.
keys
==
shotengai_series
.
spec_value
.
keys
errors
.
add
(
:spec_value
,
'spec 与 所给系列不符。'
)
unless
spec_value
.
nil?
||
spec_value
.
keys
.
sort
==
shotengai_series
.
spec_value
.
keys
.
sort
end
def
remark_template_empty?
...
...
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