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
Tatuya Kamada
gitlab-ce
Commits
55b07533
Commit
55b07533
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
b17843a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
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/protected_branches_controller.rb
app/controllers/projects/protected_branches_controller.rb
+1
-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 @
55b07533
module
Re
directReques
t
module
Re
positorySettingsRedirec
t
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
def
redirect_to_repository_settings
(
project
)
def
redirect_to_repository_settings
(
project
)
...
...
app/controllers/projects/deploy_keys_controller.rb
View file @
55b07533
class
Projects::DeployKeysController
<
Projects
::
ApplicationController
class
Projects::DeployKeysController
<
Projects
::
ApplicationController
include
Re
directReques
t
include
Re
positorySettingsRedirec
t
respond_to
:html
respond_to
:html
# Authorize
# Authorize
...
...
app/controllers/projects/protected_branches_controller.rb
View file @
55b07533
class
Projects::ProtectedBranchesController
<
Projects
::
ApplicationController
class
Projects::ProtectedBranchesController
<
Projects
::
ApplicationController
include
Re
directReques
t
include
Re
positorySettingsRedirec
t
# Authorize
# Authorize
before_action
:require_non_empty_project
before_action
:require_non_empty_project
before_action
:authorize_admin_project!
before_action
:authorize_admin_project!
...
...
spec/presenters/projects/settings/deploy_keys_presenter_spec.rb
View file @
55b07533
...
@@ -44,7 +44,7 @@ describe Projects::Settings::DeployKeysPresenter do
...
@@ -44,7 +44,7 @@ describe Projects::Settings::DeployKeysPresenter do
expect
(
presenter
.
available_project_keys
).
to
be_empty
expect
(
presenter
.
available_project_keys
).
to
be_empty
end
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
)
expect
(
presenter
.
any_available_project_keys_enabled?
).
to
eq
(
false
)
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