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
63ec9993
Commit
63ec9993
authored
Jul 06, 2018
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use :shotengai_product instead of :product in :delegate
parent
be294ceb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
product.rb
lib/shotengai/product.rb
+2
-1
series.rb
lib/shotengai/series.rb
+2
-2
No files found.
lib/shotengai/product.rb
View file @
63ec9993
...
...
@@ -162,4 +162,4 @@ module Shotengai
end
end
end
end
end
\ No newline at end of file
lib/shotengai/series.rb
View file @
63ec9993
...
...
@@ -41,14 +41,14 @@ module Shotengai
harray_accessor
:spec_value
,
:remark_value
,
decode:
true
template_with_value_getters
:info
,
:detail_info
,
value_in_template:
true
template_with_value_getters
:spec
,
:remark
,
delegate_template_to: :product
template_with_value_getters
:spec
,
:remark
,
delegate_template_to: :
shotengai_
product
# full_info_template: { optional: d, detail: detail_info_template }
column_has_implants
:info_template
,
implants:
[
'detail'
],
as:
'optional'
# generate_hash_value_column_for :spec, :remark, delegate_template_to: :product
delegate
:title
,
:detail
,
:banners
,
:cover_image
,
:status
,
:status_zh
,
:manager
,
to: :product
delegate
:title
,
:detail
,
:banners
,
:cover_image
,
:status
,
:status_zh
,
:manager
,
to: :
shotengai_
product
belongs_to
:shotengai_product
,
foreign_key: :shotengai_product_id
,
class_name:
'Shotengai::Product'
#, touch: true
...
...
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