aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/companies_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/companies_controller.rb')
-rw-r--r--app/controllers/companies_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb
index 90d0c2530..1abaca9a8 100644
--- a/app/controllers/companies_controller.rb
+++ b/app/controllers/companies_controller.rb
@@ -35,8 +35,8 @@ class CompaniesController < ChouetteController
referential_companies_path(referential)
end
- def permitted_params
- params.permit(company: [ :objectid, :object_version, :creation_time, :creator_id, :name, :short_name, :organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :registration_number, :url, :time_zone ])
+ def company_params
+ params.require(:company).permit( :objectid, :object_version, :creation_time, :creator_id, :name, :short_name, :organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :registration_number, :url, :time_zone )
end
end