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')
-rw-r--r--config/environments/development.rb4
-rw-r--r--config/environments/test.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index d475a2a6642..5e67ed71954 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -50,6 +50,8 @@ Rails.application.configure do
# Push preview path now to prevent FrozenError during view_component's initialzer
config.autoload_paths.push("#{config.root}/spec/components/previews")
+ config.lookbook.page_paths = ["#{config.root}/spec/components/docs"]
+
# Adds additional error checking when serving assets at runtime.
# Checks for improperly declared sprockets dependencies.
# Raises helpful error messages.
@@ -61,7 +63,7 @@ Rails.application.configure do
config.action_mailer.raise_delivery_errors = true
# Don't make a mess when bootstrapping a development environment
config.action_mailer.perform_deliveries = (ENV['BOOTSTRAP'] != '1')
- config.action_mailer.preview_path = "#{Rails.root}{/ee,}/app/mailers/previews"
+ config.action_mailer.preview_path = GitlabEdition.path_glob('app/mailers/previews')
config.eager_load = false
diff --git a/config/environments/test.rb b/config/environments/test.rb
index f4d3d2ddfda..41413c55ba4 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -48,6 +48,8 @@ Rails.application.configure do
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+ config.action_mailer.preview_path = GitlabEdition.path_glob('app/mailers/previews')
+
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr