summaryrefslogtreecommitdiff
path: root/app/services/milestones
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-04-05 11:51:19 -0300
committerFelipe Artur <felipefac@gmail.com>2016-04-07 10:59:24 -0300
commit0bef4b97647893df8cf0a781f768b1775ae2bb58 (patch)
treec72043d7b4263efd229d93329237a60d0e0684da /app/services/milestones
parent32c7e42b612bdda43eeef55d8c8afdc9eeb33785 (diff)
downloadgitlab-ce-0bef4b97647893df8cf0a781f768b1775ae2bb58.tar.gz
Implement review suggestions
Diffstat (limited to 'app/services/milestones')
-rw-r--r--app/services/milestones/create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/milestones/create_service.rb b/app/services/milestones/create_service.rb
index b8e08c9f1eb..3b90399af64 100644
--- a/app/services/milestones/create_service.rb
+++ b/app/services/milestones/create_service.rb
@@ -3,7 +3,7 @@ module Milestones
def execute
milestone = project.milestones.new(params)
- if milestone.save
+ if milestone.save!
event_service.open_milestone(milestone, current_user)
end