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
cea424ab
Commit
cea424ab
authored
Oct 16, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old json column method in models
parent
162a7325
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
product.rb
lib/shotengai/product.rb
+0
-2
series.rb
lib/shotengai/series.rb
+1
-2
snapshot.rb
lib/shotengai/snapshot.rb
+0
-1
No files found.
lib/shotengai/product.rb
View file @
cea424ab
...
...
@@ -31,8 +31,6 @@ module Shotengai
require
'acts-as-taggable-on'
self
.
table_name
=
'shotengai_products'
# generate_hash_template_column_for :spec, :remark
harray_accessor
:spec_template
,
:remark_template
template_with_value_getters
:spec
,
:remark
,
value_in_template:
true
...
...
lib/shotengai/series.rb
View file @
cea424ab
...
...
@@ -39,11 +39,10 @@ module Shotengai
harray_accessor
:info_template
,
:detail_info_template
harray_accessor
:spec_value
,
:remark_value
,
decode:
true
template_with_value_getters
:info
,
value_in_template:
true
template_with_value_getters
:spec
,
:remark
,
delegate_template_to: :product
# info_template
# generate_hash_template_column_for :info
# full_info_template: { optional: d, detail: detail_info_template }
column_has_implants
:info_template
,
implants:
[
'detail'
],
as:
'optional'
...
...
lib/shotengai/snapshot.rb
View file @
cea424ab
...
...
@@ -38,7 +38,6 @@ module Shotengai
validate
:check_remark_value
,
unless: :remark_template_empty?
validates
:count
,
numericality:
{
only_integer:
true
,
greater_than:
0
}
# generate_hash_value_column_for :spec, :info, :remark, delegate_template_to: :series
template_with_value_getters
:spec
,
:remark
,
:info
,
delegate_template_to: :series
column_has_implants
:meta
,
implants:
[
'product'
,
'series'
],
as: :snapshot
...
...
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