Use current user in votes components
Just like we do in most places; we almost never use `user_signed_in?`.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class Proposals::VotesComponent < ApplicationComponent
|
||||
attr_reader :proposal
|
||||
delegate :current_user, :link_to_verify_account, :user_signed_in?, to: :helpers
|
||||
delegate :current_user, :link_to_verify_account, to: :helpers
|
||||
|
||||
def initialize(proposal, vote_url: nil)
|
||||
@proposal = proposal
|
||||
|
||||
Reference in New Issue
Block a user