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
350e5649
Commit
350e5649
authored
Sep 30, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add presence validation to series
parent
2ea817e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
series.rb
lib/shotengai/series.rb
+2
-0
No files found.
lib/shotengai/series.rb
View file @
350e5649
...
@@ -24,6 +24,8 @@ module Shotengai
...
@@ -24,6 +24,8 @@ module Shotengai
class
Series
<
Shotengai
::
Model
class
Series
<
Shotengai
::
Model
self
.
table_name
=
'shotengai_series'
self
.
table_name
=
'shotengai_series'
validates_presence_of
:spec
validates_presence_of
:spec
validates_presence_of
:price
validate
:check_spec_value
validate
:check_spec_value
validate
:check_remark
validate
:check_remark
# Using validates_uniqueness_of do not work if the order of Hash is diff
# Using validates_uniqueness_of do not work if the order of Hash is diff
...
...
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