Sha256: ba54b073191db113f5c2d96ee60f2761cd9ff3b8691ca3a6a02b619644557568
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
module ActsAsVotable::Init # voter module Voter def voter? false end def acts_as_voter(*args) class_eval do belongs_to :voter, :polymorphic => true def self.voter? true end include ActsAsVotable::Voter end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_votable-0.0.5 | lib/acts_as_votable/init/voter.rb |
acts_as_votable-0.0.4 | lib/acts_as_votable/init/voter.rb |