Apply Style/CollectionMethods rule to ERB files
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
<div class="small-12 medium-6">
|
||||
<%= f.select(:administrator_id,
|
||||
@admins.collect { |a| [a.description_or_name_and_email, a.id] },
|
||||
@admins.map { |a| [a.description_or_name_and_email, a.id] },
|
||||
{ include_blank: t("admin.budget_investments.edit.undefined") }) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<p id="assigned_valuator_groups">
|
||||
<strong><%= t("admin.budget_investments.show.valuator_groups") %>:</strong>
|
||||
<% if @investment.valuator_groups.any? %>
|
||||
<%= @investment.valuator_groups.collect(&:name).join(", ") %>
|
||||
<%= @investment.valuator_groups.map(&:name).join(", ") %>
|
||||
<% else %>
|
||||
<%= t("admin.budget_investments.show.undefined") %>
|
||||
<% end %>
|
||||
@@ -46,7 +46,7 @@
|
||||
<p id="assigned_valuators">
|
||||
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
|
||||
<% if @investment.valuators.any? %>
|
||||
<%= @investment.valuators.collect(&:name_and_email).join(", ") %>
|
||||
<%= @investment.valuators.map(&:name_and_email).join(", ") %>
|
||||
<% else %>
|
||||
<%= t("admin.budget_investments.show.undefined") %>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 margin-bottom column">
|
||||
<%= f.select :status_id,
|
||||
@statuses.collect { |s| [s.name, s.id] },
|
||||
@statuses.map { |s| [s.name, s.id] },
|
||||
{ include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") },
|
||||
{ disabled: @statuses.blank? } %>
|
||||
<%= link_to t("admin.milestones.form.admin_statuses"),
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<%= f.select :id,
|
||||
@booths.collect { |booth| [booth.location, booth.id] },
|
||||
@booths.map { |booth| [booth.location, booth.id] },
|
||||
selected: @booths.first,
|
||||
label: false,
|
||||
tabindex: "1" %>
|
||||
|
||||
Reference in New Issue
Block a user