mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust param validation
This commit is contained in:
1 parent
8e3caae849
commit
8edf6405b0
1 file changed
+1
-1
@@ -178,7 +178,7 @@ module Api
|
||||
key = params.key?(:submission) ? :submission : :submissions
|
||||
|
||||
params.permit(
|
||||
key => [permitted_attrs]
|
||||
{ key => [permitted_attrs] }, { key => permitted_attrs }
|
||||
).fetch(key, [])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user