Improve strong params implementation on payment methods controller by specifying specific list of permitted attributes

This commit is contained in:
Luis Ramos
2020-02-25 15:05:04 +00:00
parent 38849f5589
commit e5ebf45765

View File

@@ -93,7 +93,10 @@ module Spree
private
def payment_method_params
params.require(:payment_method).permit!
params.require(:payment_method).permit(
:name, :type, :environment, :preferred_password, :preferred_enterprise_id,
:distributor_ids => []
)
end
def force_environment