consul/consul

View on GitHub
app/components/admin/poll/officers/officers_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::Poll::Officers::OfficersComponent < ApplicationComponent
  attr_reader :officers, :options

  def initialize(officers, **options)
    @officers = officers
    @options = options
  end

  private

    def add_user_path(officer)
      {
        controller: "admin/poll/officers",
        action: :create,
        user_id: officer.user_id
      }
    end
end