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
3cd8e1c5
Commit
3cd8e1c5
authored
Jun 06, 2018
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hahah
parent
db7b6b48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
'
'
+9
-0
json_column.rb
lib/shotengai/json_column.rb
+1
-0
product.rb
lib/shotengai/product.rb
+1
-0
No files found.
'
0 → 100644
View file @
3cd8e1c5
Hahaha
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Changes to be committed:
# modified: lib/shotengai/json_column.rb
# modified: lib/shotengai/product.rb
#
lib/shotengai/json_column.rb
View file @
3cd8e1c5
module
Shotengai
module
JsonColumn
extend
ActiveSupport
::
Concern
included
do
end
...
...
lib/shotengai/product.rb
View file @
3cd8e1c5
...
...
@@ -127,6 +127,7 @@ module Shotengai
# "#{tag_name}_list" tag_name is singular
# tagger_with('xx', on: "#{tag_name}.to_sym): tag_name is plural
# include JoinCatalog
require
'acts-as-taggable-on'
def
join_catalog_system
catalog_class_name
,
options
=
{}
catalog_class
=
catalog_class_name
.
constantize
tag_name
=
options
[
:as
]
||
catalog_class
.
model_name
.
singular
...
...
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