Sha256: dee98d0d1a7b5ceef3cab448fd8b0f608dfa22296c79713562124d87fbaeed3b
Contents?: true
Size: 573 Bytes
Versions: 3
Compression:
Stored size: 573 Bytes
Contents
require 'make_voteable/voting' require 'make_voteable/voteable' require 'make_voteable/voter' require 'make_voteable/exceptions' module MakeVoteable def voteable? false end def voter? false end # Specify a model as voteable. # # Example: # class Question < ActiveRecord::Base # make_voteable # end def make_voteable include Voteable end # Specify a model as voter. # # Example: # class User < ActiveRecord::Base # make_voter # end def make_voter include Voter end end ActiveRecord::Base.extend MakeVoteable
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
make_voteable-0.1.1 | lib/make_voteable.rb |
make_voteable-0.1.0 | lib/make_voteable.rb |
make_voteable-0.0.2 | lib/make_voteable.rb |