Module: ActsAsVotable::Extenders::Votable

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

Instance Method Summary collapse

Instance Method Details

#acts_as_votableObject



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

def acts_as_votable
  require 'acts_as_votable/votable'
  include ActsAsVotable::Votable

  class_eval do
    def self.votable?
      true
    end
  end

end

#votable?Boolean

Returns:

  • (Boolean)


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

def votable?
  false
end