diff --git a/app/controllers/countries_controller.rb b/app/controllers/countries_controller.rb index 6ca7d51..a85ba6e 100644 --- a/app/controllers/countries_controller.rb +++ b/app/controllers/countries_controller.rb @@ -69,7 +69,6 @@ def set_country @country = Country.find(params[:id]) end - # Never trust parameters from the scary internet, only allow the white list through. def country_params params.require(:country).permit(:name, :key_term_id) end diff --git a/app/controllers/data_files_controller.rb b/app/controllers/data_files_controller.rb index c4edc69..e13075a 100644 --- a/app/controllers/data_files_controller.rb +++ b/app/controllers/data_files_controller.rb @@ -68,7 +68,6 @@ def set_data_file @data_file = DataFile.find(params[:id]) end - # Never trust parameters from the scary internet, only allow the white list through. def data_file_params params.require(:data_file).permit(:legacy_id, :files, :size, :comp_size, :line_count, :line_length, :part, :file_type_a, :file_type_b, :flag_one, :flag_two, :file_type_a, :file_type_tech, :note, :study_num, :permission, :timestamp, :study_id) end diff --git a/app/controllers/regions_controller.rb b/app/controllers/regions_controller.rb index b082047..a5cf031 100644 --- a/app/controllers/regions_controller.rb +++ b/app/controllers/regions_controller.rb @@ -69,7 +69,6 @@ def set_region @region = Region.find(params[:id]) end - # Never trust parameters from the scary internet, only allow the white list through. def region_params params.require(:region).permit(:name, :key_term_id) end diff --git a/app/controllers/resources_controller.rb b/app/controllers/resources_controller.rb index 9da70f6..c9a6291 100644 --- a/app/controllers/resources_controller.rb +++ b/app/controllers/resources_controller.rb @@ -73,7 +73,6 @@ def set_resource @resource = Resource.find(params[:id]) end - # Never trust parameters from the scary internet, only allow the white list through. def resource_params resource_params = params.require(:resource).permit(:name, :resource_id, :url, :blurb, :link_time, :sample, :principal_investigator, diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index 6137b64..6d87264 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -69,7 +69,6 @@ def set_subject @subject = Subject.find(params[:id]) end - # Never trust parameters from the scary internet, only allow the white list through. def subject_params params.require(:subject).permit(:name, :key_term_id) end