mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Improve strong params implementation on payment methods controller by specifying specific list of permitted attributes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user