diff options
author | Stan Hu <stanhu@gmail.com> | 2018-05-17 10:12:48 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-05-17 10:35:34 -0700 |
commit | 90100c26611216ac9b1c64c4ed54a8b5a20df5c9 (patch) | |
tree | 8b40b2b39a6295ba8b0be96c7c6d40e0d22dd491 /config/initializers/deprecations.rb | |
parent | 357aaafb73a6d8c4e0185f193d67a06ed1b79832 (diff) | |
download | gitlab-ce-90100c26611216ac9b1c64c4ed54a8b5a20df5c9.tar.gz |
Conditionally add Gitaly deprecation warnings based on ENV variable
Diffstat (limited to 'config/initializers/deprecations.rb')
-rw-r--r-- | config/initializers/deprecations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/deprecations.rb b/config/initializers/deprecations.rb index c8d7f742bb1..14616e726d9 100644 --- a/config/initializers/deprecations.rb +++ b/config/initializers/deprecations.rb @@ -1,4 +1,4 @@ -if Gitlab.dev_env_or_com? +if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE'] deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab') deprecator.behavior = -> (message, callstack) { |