Created
July 5, 2013 18:02
Revisions
-
Chris Stump created this gist
Jul 5, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,64 @@ require 'active_support' module TestConcern extend ActiveSupport::Concern module ClassMethods def test_class_method puts "I gots class!" end end def test_instance_method self.class.test_class_method end end module TestConcern2 extend ActiveSupport::Concern def test_instance_method self.class.test_class_method end module ClassMethods def test_class_method puts "I gots class!" end end end module TestConcern3 extend ActiveSupport::Concern module ClassMethods def test_class_method puts "I gots class!" end end included do def test_instance_method self.class.test_class_method end end end module TestConcern4 extend ActiveSupport::Concern included do def test_instance_method self.class.test_class_method end end module ClassMethods def test_class_method puts "I gots class!" end end end