Sha256: b778f27835c518a1ce71b999773d9678100e9bdfe53b4ab42d254dc533e82977

Contents?: true

Size: 443 Bytes

Versions: 8

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module ActsAsVotable
  module Extenders
    module Controller
      def voter_params(params_object = params[:vote])
        params_object.permit(:votable_id, :votable_type,
          :voter_id, :voter_type,
          :votable, :voter,
          :vote_flag, :vote_scope)
      end

      def votable_params(params_object = params[:vote])
        params_object.permit(:vote_registered)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_votable-0.14.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.13.2 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.13.1 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.13.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.12.1 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.12.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.11.1 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.11.0 lib/acts_as_votable/extenders/controller.rb