forked from blackcandy-org/blackcandy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes blackcandy-org#123 - Avoid Unpermitted parameters on Playlists:…
…:SongsController Calling `permit` on the base params makes other params that are submitted invalid - and there are others, such as playlist_id and authenticity_token. Because no params are being mass-assigned, there's no benefit to calling `permit` anyway, so remove `playlist_songs_params` Added a config to dev and test to raise when unpermitted params are passed to surface errors like this.
- Loading branch information
1 parent
6ab1da3
commit 3507d87
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters