Add and apply Rails/RedundantActiveRecordAllMethod
This rule was introduced in rubocop-rails 2.21.0.
This commit is contained in:
@@ -48,7 +48,7 @@ section "Creating Budgets" do
|
||||
end
|
||||
end
|
||||
|
||||
Budget.all.find_each do |budget|
|
||||
Budget.find_each do |budget|
|
||||
city_group = budget.groups.create!(
|
||||
random_locales_attributes(name: -> { I18n.t("seeds.budgets.groups.all_city") })
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@ section "Creating Sustainable Development Goals" do
|
||||
end
|
||||
|
||||
section "Creating SDG homepage cards" do
|
||||
SDG::Phase.all.find_each do |phase|
|
||||
SDG::Phase.find_each do |phase|
|
||||
Widget::Card.create!(cardable: phase, title: "#{phase.title} card",
|
||||
link_text: "Link Text", link_url: "/any_path")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user