Skip to content

Instantly share code, notes, and snippets.

@sauloarruda
Created November 10, 2022 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauloarruda/40be2347caa853d66ffeb66434e0241f to your computer and use it in GitHub Desktop.
Save sauloarruda/40be2347caa853d66ffeb66434e0241f to your computer and use it in GitHub Desktop.
{
"grid_size": {
"name: "P-M-G",
"reference": "002",
"items_csv": "P,M,G"
}
}
params.require('grid_size').permit(:name, :reference, :integration_id, :items_csv)
@carolfaroumode
Copy link

só essa ordem:
(:name, :reference, :integration_id, :items_csv)
que está invertida, seria:
(:integration_id, :reference, :name, :items_csv)? ou mantenho a sugestão original?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment