Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created November 10, 2010 15:32
Show Gist options
  • Save zeroeth/670995 to your computer and use it in GitHub Desktop.
Save zeroeth/670995 to your computer and use it in GitHub Desktop.
module CertificateMagic
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def some_class_method
end
end
def instance_method_one
end
def other_instance_method
end
end
....
class AwesomeCertificate < AR::Base
include CertificateMagic
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment