Created
November 10, 2010 15:32
-
-
Save zeroeth/670995 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
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