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
88d53c0b
Commit
88d53c0b
authored
Jun 13, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop complain
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4822f87e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
13 deletions
+2
-13
app/models/approver.rb
app/models/approver.rb
+1
-1
app/models/approver_group.rb
app/models/approver_group.rb
+1
-1
app/models/project.rb
app/models/project.rb
+0
-11
No files found.
app/models/approver.rb
View file @
88d53c0b
class
Approver
<
ActiveRecord
::
Base
belongs_to
:target
,
polymorphic:
true
belongs_to
:target
,
polymorphic:
true
# rubocop:disable Cop/PolymorphicAssociations
belongs_to
:user
validates
:user
,
presence:
true
...
...
app/models/approver_group.rb
View file @
88d53c0b
class
ApproverGroup
<
ActiveRecord
::
Base
belongs_to
:target
,
polymorphic:
true
belongs_to
:target
,
polymorphic:
true
# rubocop:disable Cop/PolymorphicAssociations
belongs_to
:group
validates
:group
,
presence:
true
...
...
app/models/project.rb
View file @
88d53c0b
...
...
@@ -1223,17 +1223,6 @@ class Project < ActiveRecord::Base
!!
repository
.
exists?
end
def
update_forks_visibility_level
return
unless
visibility_level
<
visibility_level_was
forks
.
each
do
|
forked_project
|
if
forked_project
.
visibility_level
>
visibility_level
forked_project
.
visibility_level
=
visibility_level
forked_project
.
save!
end
end
end
def
create_wiki
ProjectWiki
.
new
(
self
,
self
.
owner
).
wiki
true
...
...
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