-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude hidden field when unchecked_value: false
Rails does not generate a hidden field for checkboxes if `unchecked_value` is false. The nested boolean creates its own hidden field and ignores this rule from rails. That means that the hidden field is generated for a falsey value when using the nested style, but not when using the inline style. This commit fixes this problem by making the nested style behave like the inline style, adhering to the standard set by rails. Resolves: #1320
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
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