Merge pull request #5154 from luisramos0/prop_strong

[Spree 2.1] Add strong params implementation to properties controller
This commit is contained in:
Maikel
2020-04-07 16:27:22 +10:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -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'

View File

@@ -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