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
2c35a499
Commit
2c35a499
authored
Sep 29, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve custom_hash_column
parent
507a69ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
order.rb
lib/shotengai/order.rb
+1
-1
snapshot.rb
lib/shotengai/snapshot.rb
+1
-1
No files found.
lib/shotengai/order.rb
View file @
2c35a499
...
@@ -38,7 +38,7 @@ module Shotengai
...
@@ -38,7 +38,7 @@ module Shotengai
after_create
:set_seq
after_create
:set_seq
custom_hash_columns
:spec
,
:meta
custom_hash_columns
:spec
include
AASM_DLC
include
AASM_DLC
aasm
column: :status
do
aasm
column: :status
do
...
...
lib/shotengai/snapshot.rb
View file @
2c35a499
...
@@ -36,7 +36,7 @@ module Shotengai
...
@@ -36,7 +36,7 @@ module Shotengai
validate
:check_remark
validate
:check_remark
validates
:count
,
numericality:
{
only_integer:
true
,
greater_than:
0
}
validates
:count
,
numericality:
{
only_integer:
true
,
greater_than:
0
}
custom_hash_columns
:spec
,
:
meta
,
:detail
,
:
remark
custom_hash_columns
:spec
,
:remark
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
...
...
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