-
-
Save soulcutter/5936232 to your computer and use it in GitHub Desktop.
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 characters
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 | |
module TestConcern5 | |
extend ActiveSupport::Concern | |
included do | |
test_class_method | |
end | |
module ClassMethods | |
def test_class_method | |
puts "I gots class!" | |
end | |
end | |
end | |
module TestConcern6 | |
extend ActiveSupport::Concern | |
test_class_method | |
module ClassMethods | |
def test_class_method | |
puts "I gots class!" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment