ãã¡ã¿ããã°ã©ãã³ã°Rubyãã«æ¸ãã¦ããå 容ã¨ææ°ã®ActiveRecord(3.0.9)ã¯ã¢ã¸ã¥ã¼ã«ã®ç®¡çæ¹æ³ãããªãéã£ãã®ã§ãã©ããªã£ã¦ãã®ã調ã¹ãã ã©ããActiveSupportã®Concernã¢ã¸ã¥ã¼ã«ãé¢åãã¿ã¦ãã£ã½ãã module M extend ActiveSupport::Concern module ClassMethods def cm; puts 'I am a class method'; end end module InstanceMethods def im; puts 'I am an instance method'; end end end ã¿ããã«æ¸ãã¨ããã®ã¢ã¸ã¥ã¼ã«ãincludeããã¯ã©ã¹ã«ãClassMethodsã«æ¸ããå 容ãã¡ã½ãããã¯ã©ã¹ã¡ã½ããã¨ãã¦è¿½å ãããã ä»çµã¿ã¨ãã¦ã¯ãincludeæã«Concernã¢ã¸ã¥ã¼ã«
{{#tags}}- {{label}}
{{/tags}}