Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d8f0d4827da3
Commit
1de562b3
authored
May 17, 2018
by
Stan Hu
Browse files
Conditionally add Gitaly deprecation warnings based on ENV variable
parent
06fd01c87e30
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/initializers/deprecations.rb
View file @
d8f0d482
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment