Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 5b72c6b35f8..d475a2a6642 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -25,6 +25,9 @@ Rails.application.configure do
# Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
+ # Raise exceptions for disallowed deprecations.
+ config.active_support.disallowed_deprecation = :raise
+
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
@@ -40,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.