Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
132f7d33
Commit
132f7d33
authored
Apr 18, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport dev env check for storage settings deprecation
parent
87cdd43b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config/initializers/deprecations.rb
config/initializers/deprecations.rb
+1
-1
lib/gitlab.rb
lib/gitlab.rb
+1
-1
No files found.
config/initializers/deprecations.rb
View file @
132f7d33
deprecator
=
ActiveSupport
::
Deprecation
.
new
(
'11.0'
,
'GitLab'
)
deprecator
=
ActiveSupport
::
Deprecation
.
new
(
'11.0'
,
'GitLab'
)
if
Gitlab
.
com?
||
Rails
.
env
.
development
?
if
Gitlab
.
dev_env_or_com
?
ActiveSupport
::
Deprecation
.
deprecate_methods
(
Gitlab
::
GitalyClient
::
StorageSettings
,
:legacy_disk_path
,
deprecator:
deprecator
)
ActiveSupport
::
Deprecation
.
deprecate_methods
(
Gitlab
::
GitalyClient
::
StorageSettings
,
:legacy_disk_path
,
deprecator:
deprecator
)
end
end
lib/gitlab.rb
View file @
132f7d33
...
@@ -30,6 +30,6 @@ module Gitlab
...
@@ -30,6 +30,6 @@ module Gitlab
end
end
def
self
.
dev_env_or_com?
def
self
.
dev_env_or_com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
org?
||
com?
Rails
.
env
.
development?
||
org?
||
com?
end
end
end
end
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