Files
nairobi/app/components/legislation/proposals/votes_component.rb
Javi Martín 70f717e564 Use current user in votes components
Just like we do in most places; we almost never use `user_signed_in?`.
2022-02-21 18:47:13 +01:00

9 lines
261 B
Ruby

class Legislation::Proposals::VotesComponent < ApplicationComponent
attr_reader :proposal
delegate :css_classes_for_vote, :current_user, :link_to_verify_account, :votes_percentage, to: :helpers
def initialize(proposal)
@proposal = proposal
end
end