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:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-06-02 23:21:00 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-06 19:59:49 +0300
commitf011f038cd6cd1fcb01a18de5774ef7be34d6cef (patch)
treee757d09c84da521e90422f98443ad824324c58ce /app/models/label.rb
parent8f0bf297676dac33ecc8ced10da5ae88f36a9ab0 (diff)
Update method name
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index 9e04c5263bd..e4fc4f251d8 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -26,7 +26,7 @@ class Label < ActiveRecord::Base
format: { with: /\A[^&\?,]+\z/ },
uniqueness: { scope: :project_id }
- before_save :nillify_priority
+ before_save :nullify_priority
default_scope { order(title: :asc) }
@@ -129,7 +129,7 @@ class Label < ActiveRecord::Base
end
end
- def nillify_priority
+ def nullify_priority
self.priority = nil if priority.blank?
end
end