From 07264446e6708efd9673a4bce49aa53db1494685 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 4 Apr 2020 11:17:22 +0100 Subject: [PATCH 1/2] Add strong params implementation to properties controller --- app/controllers/spree/admin/properties_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/spree/admin/properties_controller.rb b/app/controllers/spree/admin/properties_controller.rb index dcccad41f9..fd618f1272 100644 --- a/app/controllers/spree/admin/properties_controller.rb +++ b/app/controllers/spree/admin/properties_controller.rb @@ -1,6 +1,9 @@ module Spree module Admin class PropertiesController < ResourceController + def permitted_resource_params + params.require(:property).permit(:name, :presentation) + end end end end From 4f08ed18015cb63fb99d0796177e400f7b935810 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 4 Apr 2020 11:39:20 +0100 Subject: [PATCH 2/2] Remove commented turbo-sprockets-rails3 from Gemfile, thsi gem is not needed in rails 4 --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index af4a606437..5a13e1ff50 100644 --- a/Gemfile +++ b/Gemfile @@ -108,7 +108,6 @@ gem 'uglifier', '>= 1.0.3' gem 'angular-rails-templates', '~> 0.3.0' gem 'foundation-icons-sass-rails' gem 'momentjs-rails' -# gem 'turbo-sprockets-rails3' gem 'foundation-rails', '= 5.5.2.1'