This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
22 lines
426 B
Ruby
22 lines
426 B
Ruby
class Admin::Proposals::IndexComponent < ApplicationComponent
|
|
include Header
|
|
|
|
attr_reader :proposals
|
|
|
|
def initialize(proposals)
|
|
@proposals = proposals
|
|
end
|
|
|
|
def title
|
|
t("admin.proposals.index.title")
|
|
end
|
|
|
|
private
|
|
|
|
def successful_proposals_link
|
|
if Proposal.successful.any?
|
|
link_to t("admin.questions.index.successful_proposals_tab"), successful_admin_proposals_path
|
|
end
|
|
end
|
|
end
|