Apply Style/CollectionMethods rubocop rule
We were already using `map` and `reduce` almost everywhere.
This commit is contained in:
@@ -28,7 +28,7 @@ module ProposalsHelper
|
||||
end
|
||||
|
||||
def retire_proposals_options
|
||||
Proposal::RETIRE_OPTIONS.collect { |option| [t("proposals.retire_options.#{option}"), option] }
|
||||
Proposal::RETIRE_OPTIONS.map { |option| [t("proposals.retire_options.#{option}"), option] }
|
||||
end
|
||||
|
||||
def empty_recommended_proposals_message_text(user)
|
||||
|
||||
Reference in New Issue
Block a user