Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/push_event.rb')
-rw-r--r--app/models/push_event.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/push_event.rb b/app/models/push_event.rb
index 5cab686f20b..0f626cb618e 100644
--- a/app/models/push_event.rb
+++ b/app/models/push_event.rb
@@ -68,7 +68,7 @@ class PushEvent < Event
end
def self.sti_name
- PUSHED
+ actions[:pushed]
end
def push_action?
@@ -111,7 +111,7 @@ class PushEvent < Event
end
def validate_push_action
- return if action == PUSHED
+ return if pushed_action?
errors.add(:action, "the action #{action.inspect} is not valid")
end