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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
dd0589f8
Commit
dd0589f8
authored
Mar 03, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed the redirect_request concern to repository_settings_redirect
Also fixed naming of a test in the deploy_keys_presenter
parent
b2bbb997
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
app/controllers/concerns/repository_settings_redirect.rb
app/controllers/concerns/repository_settings_redirect.rb
+1
-1
app/controllers/projects/deploy_keys_controller.rb
app/controllers/projects/deploy_keys_controller.rb
+1
-1
app/controllers/projects/mirrors_controller.rb
app/controllers/projects/mirrors_controller.rb
+1
-1
app/controllers/projects/protected_branches_controller.rb
app/controllers/projects/protected_branches_controller.rb
+1
-1
app/controllers/projects/push_rules_controller.rb
app/controllers/projects/push_rules_controller.rb
+2
-1
spec/presenters/projects/settings/deploy_keys_presenter_spec.rb
...resenters/projects/settings/deploy_keys_presenter_spec.rb
+1
-1
No files found.
app/controllers/concerns/re
direct_reques
t.rb
→
app/controllers/concerns/re
pository_settings_redirec
t.rb
View file @
dd0589f8
module
Re
directReques
t
module
Re
positorySettingsRedirec
t
extend
ActiveSupport
::
Concern
def
redirect_to_repository_settings
(
project
)
...
...
app/controllers/projects/deploy_keys_controller.rb
View file @
dd0589f8
class
Projects::DeployKeysController
<
Projects
::
ApplicationController
include
Re
directReques
t
include
Re
positorySettingsRedirec
t
respond_to
:html
# Authorize
...
...
app/controllers/projects/mirrors_controller.rb
View file @
dd0589f8
class
Projects::MirrorsController
<
Projects
::
ApplicationController
include
Re
directReques
t
include
Re
positorySettingsRedirec
t
# Authorize
before_action
:authorize_admin_project!
,
except:
[
:update_now
]
before_action
:authorize_push_code!
,
only:
[
:update_now
]
...
...
app/controllers/projects/protected_branches_controller.rb
View file @
dd0589f8
class
Projects::ProtectedBranchesController
<
Projects
::
ApplicationController
include
Re
directReques
t
include
Re
positorySettingsRedirec
t
# Authorize
before_action
:require_non_empty_project
before_action
:authorize_admin_project!
...
...
app/controllers/projects/push_rules_controller.rb
View file @
dd0589f8
class
Projects::PushRulesController
<
Projects
::
ApplicationController
include
RedirectRequest
include
RepositorySettingsRedirect
# Authorize
before_action
:authorize_admin_project!
...
...
spec/presenters/projects/settings/deploy_keys_presenter_spec.rb
View file @
dd0589f8
...
...
@@ -44,7 +44,7 @@ describe Projects::Settings::DeployKeysPresenter do
expect
(
presenter
.
available_project_keys
).
to
be_empty
end
it
'returns if any available_project_keys are enabled'
do
it
'returns
false
if any available_project_keys are enabled'
do
expect
(
presenter
.
any_available_project_keys_enabled?
).
to
eq
(
false
)
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