Sha256: 6917a1955afd6a03b03f933767dab87a8d8da733e894dc47d690a5b91ae10466

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_votable-0.10.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.9.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.8.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.7.1 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.7.0 lib/acts_as_votable/extenders/controller.rb
acts_as_votable-0.6.0 lib/acts_as_votable/extenders/controller.rb