Skip to content

Commit

Permalink
set config.active_storage.multiple_file_field_include_hidden as per r…
Browse files Browse the repository at this point in the history
…ails 7 defaults
  • Loading branch information
PhilipDeFraties committed Jan 6, 2025
1 parent 9f6a8ce commit afda106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_7_0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
# Active Storage `has_many_attached` relationships will default to replacing the current collection instead of appending to it.
# Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`.
# See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information.
# Rails.application.config.active_storage.multiple_file_field_include_hidden = true
Rails.application.config.active_storage.multiple_file_field_include_hidden = true

# ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
# Disables the deprecated #to_s override in some Ruby core classes
Expand Down

0 comments on commit afda106

Please sign in to comment.