Sha256: eff4908dedf49ea48996b42e79014568239efa2bbd1b0a8e5f718d5ae3b7631a

Contents?: true

Size: 337 Bytes

Versions: 15

Compression:

Stored size: 337 Bytes

Contents

module ActsAsVotable
  module Extenders

    module Votable

      def votable?
        false
      end

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

        class_eval do
          def self.votable?
            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/votable.rb
acts_as_votable-0.9.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.8.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.7.1 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.7.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.6.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.5.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.4.0 lib/acts_as_votable/extenders/votable.rb
jy-acts_as_votable-0.3.1 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.3.1 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.3.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.2.0 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.1.3 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.1.2 lib/acts_as_votable/extenders/votable.rb
acts_as_votable-0.1.1 lib/acts_as_votable/extenders/votable.rb