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 JsonColumn
extend ActiveSupport::Concern
included do
end
......
......@@ -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
......
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