From 470661e1a70bd3c8415387e9068823536d1fb1bc Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 20 Jul 2017 13:06:45 +0200 Subject: Change a method name which enumerates CI/CD statuses --- app/models/ci/stage.rb | 2 +- app/models/concerns/has_status.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index ca89caf4782..c163d047127 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -4,7 +4,7 @@ module Ci include Importable include HasStatus - enumerated_status! + enumerate_status! belongs_to :project belongs_to :pipeline diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb index a94226bb735..758d71b7f4c 100644 --- a/app/models/concerns/has_status.rb +++ b/app/models/concerns/has_status.rb @@ -12,7 +12,7 @@ module HasStatus failed: 4, canceled: 5, skipped: 6, manual: 7 }.freeze class_methods do - def enumerated_status! + def enumerate_status! enum status: HasStatus::STATUSES_ENUM end -- cgit v1.2.1