forked from otwcode/otwarchive
-
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.
AO3-4954 Check for empty params when updating tags (otwcode#2841)
* AO3-4954 Check for empty params when updating tags It's possible for an edit form to send back just the tag type and the fix taggings count (e.g. changing the type of an unsorted tag), leaving the controller to enforce strong parameters on an empty hash: "Required parameter missing: tag" To avoid this, we only apply strong parameters if params is not empty. * AO3-4954 Add a test for changing tag category to unsorted
- Loading branch information
1 parent
7b93647
commit 701bd88
Showing
3 changed files
with
43 additions
and
13 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