Module: ActsAsVotable::Extenders::Voter

Defined in:
lib/acts_as_votable/extenders/voter.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_voter(*args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/acts_as_votable/extenders/voter.rb', line 10

def acts_as_voter(*args)
  require 'acts_as_votable/voter'
  include ActsAsVotable::Voter

  class_eval do
    def self.voter?
      true
    end
  end

end

#voter?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/acts_as_votable/extenders/voter.rb', line 6

def voter?
  false
end