Skip to content

Instantly share code, notes, and snippets.

View jms301's full-sized avatar

James Southern jms301

View GitHub Profile
### 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:
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