Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
4ab2722a7728
Commit
4ab2722a
authored
Nov 20, 2012
by
Dmitriy Zaporozhets
Browse files
User custom method for services array
parent
2c8de8e8910d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
4ab2722a
...
...
@@ -47,7 +47,6 @@
has_many
:wikis
,
dependent: :destroy
has_many
:protected_branches
,
dependent: :destroy
has_one
:last_event
,
class_name:
'Event'
,
order:
'events.created_at DESC'
,
foreign_key:
'project_id'
has_many
:services
,
dependent: :destroy
has_one
:gitlab_ci_service
,
dependent: :destroy
delegate
:name
,
to: :owner
,
allow_nil:
true
,
prefix:
true
...
...
@@ -185,4 +184,8 @@
def
issues_labels
issues
.
tag_counts_on
(
:labels
)
end
def
services
[
gitlab_ci_service
].
compact
end
end
Write
Preview
Supports
Markdown
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