FIX: Support Ruby 3 keyword arguments

This commit is contained in:
Yasuo Honda
2021-09-27 21:45:05 +09:00
committed by Robin Ward
parent 5569723321
commit dbbfad7ed0
12 changed files with 24 additions and 24 deletions

View File

@ -21,7 +21,7 @@ module SeedData
categories(site_setting_names).each do |params|
params.slice!(:site_setting_name, :name, :description)
params[:skip_changed] = skip_changed
update_category(params)
update_category(**params)
end
end
end

View File

@ -23,7 +23,7 @@ module SeedData
topics(site_setting_names).each do |params|
params.except!(:category, :after_create)
params[:skip_changed] = skip_changed
update_topic(params)
update_topic(**params)
end
end
end