-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent breaking array input globally
- Loading branch information
1 parent
c9e5379
commit 2dc0052
Showing
5 changed files
with
14 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% url_params.except(*omit).each do |key, value| %> | ||
<% if value.is_a?(Array) %> | ||
<% value.each do |v| %> | ||
<%= form.hidden_field key, value: v, multiple: true %> | ||
<% end %> | ||
<% else %> | ||
<%= form.hidden_field key, value: value %> | ||
<% end %> | ||
<% end %> |
4 changes: 1 addition & 3 deletions
4
app/views/dates_filterings/convocation_dates_filterings/new.html.erb
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
6 changes: 2 additions & 4 deletions
6
app/views/dates_filterings/creation_dates_filterings/new.html.erb
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
4 changes: 1 addition & 3 deletions
4
app/views/dates_filterings/invitation_dates_filterings/new.html.erb
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