Rename sdg_related_list to related_sdg_list

To maintain consistency with the current names in the database with fields:
:related_sdg_type and :related_sdg_id
This commit is contained in:
taitus
2021-01-26 18:07:40 +01:00
parent 41ead2b37c
commit 7fa594e3e3
12 changed files with 26 additions and 26 deletions

View File

@@ -55,7 +55,7 @@ class DebatesController < ApplicationController
private
def debate_params
attributes = [:tag_list, :terms_of_service, :sdg_related_list]
attributes = [:tag_list, :terms_of_service, :related_sdg_list]
params.require(:debate).permit(attributes, translation_params(Debate))
end