Sha256: e1a2e576e23628fce34f7d2b09b46e2a1b777a4f059dfa937b9cf429af3b41ec

Contents?: true

Size: 331 Bytes

Versions: 15

Compression:

Stored size: 331 Bytes

Contents

module ActsAsVotable
  module Extenders

    module Voter

      def voter?
        false
      end

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

        class_eval do
          def self.voter?
            true
          end
        end

      end

    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
acts_as_votable-0.10.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.9.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.8.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.7.1 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.7.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.6.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.5.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.4.0 lib/acts_as_votable/extenders/voter.rb
jy-acts_as_votable-0.3.1 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.3.1 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.3.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.2.0 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.1.3 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.1.2 lib/acts_as_votable/extenders/voter.rb
acts_as_votable-0.1.1 lib/acts_as_votable/extenders/voter.rb