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
c15ea7f3
Commit
c15ea7f3
authored
Jul 15, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RuboCop offenses for duplicated methods
parent
7354c574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+0
-4
app/models/project.rb
app/models/project.rb
+0
-5
No files found.
app/controllers/projects/issues_controller.rb
View file @
c15ea7f3
...
...
@@ -191,10 +191,6 @@ class Projects::IssuesController < Projects::ApplicationController
return
render_404
unless
can?
(
current_user
,
:read_issue
,
@issue
)
end
def
authorize_read_issue!
return
render_404
unless
can?
(
current_user
,
:read_issue
,
@issue
)
end
def
authorize_update_issue!
return
render_404
unless
can?
(
current_user
,
:update_issue
,
@issue
)
end
...
...
app/models/project.rb
View file @
c15ea7f3
...
...
@@ -607,11 +607,6 @@ class Project < ActiveRecord::Base
RepositoryUpdateMirrorWorker
.
perform_in
(
delay
,
self
.
id
)
end
def
mark_import_as_failed
(
error_message
)
import_fail
update_column
(
:import_error
,
Gitlab
::
UrlSanitizer
.
sanitize
(
error_message
))
end
def
has_remote_mirror?
remote_mirrors
.
enabled
.
exists?
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