Sha256: ed8c6b8c41dd1ce047c2e8040fbcb4c16ec4410d1d84feb5f7fb3bdba9935f75

Contents?: true

Size: 260 Bytes

Versions: 7

Compression:

Stored size: 260 Bytes

Contents

module Neutral
  module Helpers
    module CurrentVoter
      extend ActiveSupport::Concern

      def current_voter
        send Neutral.config.current_voter_method
      end

      included do
        helper_method :current_voter
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
neutral-0.0.10 lib/neutral/helpers/current_voter.rb
neutral-0.0.9 lib/neutral/helpers/current_voter.rb
neutral-0.0.8 lib/neutral/helpers/current_voter.rb
neutral-0.0.7 lib/neutral/helpers/current_voter.rb
neutral-0.0.6 lib/neutral/helpers/current_voter.rb
neutral-0.0.5 lib/neutral/helpers/current_voter.rb
neutral-0.0.4 lib/neutral/helpers/current_voter.rb