çããããã«ã¡ã¯ï¼ã太é¼å¼ãããµã¼ã¸ï¼é¢ç½ããï¼ãã¨æã£ãããã¿ã¤å¤å¼ãããµã¼ã¸ãã§ãããMUGENUP ã® osada ã§ããååã£ã¦é£ããã§ãããã ã¨ããã§ãActiveSupport::Concern ã® ClassMethod ã§å®ç¾©ããã¯ã©ã¹å¤æ°ããã©ãã«ãããããåç¥ã§ããï¼ # app/models/concern/item_module.rb module ItemModule extend ActiveSupport::Concern module ClassMethods def my_module_method @@concern_class_variable ||= "concern_class_variable" end end end # app/models/item.rb class Item < ActiveRecord::Base include It
{{#tags}}- {{label}}
{{/tags}}