mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-29 12:00:32 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -43,6 +43,13 @@ Rails.application.configure do
|
||||
# Annotate rendered view with template file names as HTML comments
|
||||
config.action_view.annotate_rendered_view_with_filenames = true
|
||||
|
||||
# ViewComponent previews
|
||||
config.view_component.default_preview_layout = "component_preview"
|
||||
config.view_component.preview_route = "/-/view_component/previews"
|
||||
config.view_component.preview_paths << "#{config.root}/spec/components/previews"
|
||||
# Push preview path now to prevent FrozenError during view_component's initialzer
|
||||
config.autoload_paths.push("#{config.root}/spec/components/previews")
|
||||
|
||||
# Adds additional error checking when serving assets at runtime.
|
||||
# Checks for improperly declared sprockets dependencies.
|
||||
# Raises helpful error messages.
|
||||
|
@ -21,6 +21,8 @@ Rails.application.configure do
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
config.cache_classes = Gitlab::Utils.to_boolean(ENV['CACHE_CLASSES'], default: false)
|
||||
|
||||
config.view_component.preview_route = "/-/view_component/previews"
|
||||
|
||||
# Configure static asset server for tests with Cache-Control for performance
|
||||
config.assets.compile = false if ENV['CI']
|
||||
# There is no need to check if assets are precompiled locally
|
||||
|
Reference in New Issue
Block a user