Skip to content

Instantly share code, notes, and snippets.

@iwan
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwan/50deff48f6d4163260b8 to your computer and use it in GitHub Desktop.
Save iwan/50deff48f6d4163260b8 to your computer and use it in GitHub Desktop.
Template for Rails concern file
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