chore(generators): fix defaults for view_component generator

This commit is contained in:
Colin Darie 2023-10-17 17:40:18 +02:00
parent ad671092c0
commit f522b45fc3
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -86,10 +86,10 @@ module TPS
# @see https://guides.rubyonrails.org/configuring.html#custom-configuration # @see https://guides.rubyonrails.org/configuring.html#custom-configuration
config.x.clamav.enabled = ENV.fetch("CLAMAV_ENABLED", "enabled") == "enabled" config.x.clamav.enabled = ENV.fetch("CLAMAV_ENABLED", "enabled") == "enabled"
config.view_component.generate_sidecar = true config.view_component.generate.sidecar = true
config.view_component.generate_locale = true config.view_component.generate.locale = true
config.view_component.generate_distinct_locale_files = true config.view_component.generate.distinct_locale_files = true
config.view_component.generate_preview = true config.view_component.generate.preview = true
config.view_component.show_previews_source = true config.view_component.show_previews_source = true
config.view_component.default_preview_layout = 'component_preview' config.view_component.default_preview_layout = 'component_preview'
config.view_component.preview_paths << "#{Rails.root}/spec/components/previews" config.view_component.preview_paths << "#{Rails.root}/spec/components/previews"