Sha256: d28fc350126b3ab19d4acb02776cb62691783b83b5fb7a5dd1fd9dbee4dfdff1

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module ActsAsVotable
  module Extenders
    module Voter
      def voter?
        false
      end

      def acts_as_voter(*_args)
        include ActsAsVotable::Voter

        class_eval do
          def self.voter?
            true
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_votable-0.14.0 lib/acts_as_votable/extenders/voter.rb