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
### Keybase proof | |
I hereby claim: | |
* I am jms301 on github. | |
* I am super_james (https://keybase.io/super_james) on keybase. | |
* I have a public key ASCuIHgJuq5CWFobxncwdJaFDUDCaolQBgCUi6NDE8UTSgo | |
To claim this, I am signing this object: |
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 ActsAsVotable | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
ActiveRecord::Base.send(:include, ActsAsVotable) | |
end | |
module ClassMethods | |
def acts_as_votable | |
send :include, InstanceMethods |