Commit 3cd8e1c5 by ivan Lan

Hahah

parent db7b6b48
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
#
module Shotengai module Shotengai
module JsonColumn module JsonColumn
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
end end
......
...@@ -127,6 +127,7 @@ module Shotengai ...@@ -127,6 +127,7 @@ module Shotengai
# "#{tag_name}_list" tag_name is singular # "#{tag_name}_list" tag_name is singular
# tagger_with('xx', on: "#{tag_name}.to_sym): tag_name is plural # tagger_with('xx', on: "#{tag_name}.to_sym): tag_name is plural
# include JoinCatalog # include JoinCatalog
require 'acts-as-taggable-on'
def join_catalog_system catalog_class_name, options={} def join_catalog_system catalog_class_name, options={}
catalog_class = catalog_class_name.constantize catalog_class = catalog_class_name.constantize
tag_name = options[:as] || catalog_class.model_name.singular tag_name = options[:as] || catalog_class.model_name.singular
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment