Last active
August 29, 2015 14:04
-
-
Save iwan/50deff48f6d4163260b8 to your computer and use it in GitHub Desktop.
Template for Rails concern file
This file contains 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
module Zo | |
extend ActiveSupport::Concern | |
included do | |
# ... | |
end | |
def an_instance_method | |
# ... | |
end | |
module ClassMethods | |
def a_class_method | |
# ... | |
end | |
end | |
# no need to invoke self.included(receiver)... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment