Commit f011f038 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Update method name

parent 8f0bf297
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment