Commit 2c37b583 authored by Donald Cook's avatar Donald Cook

Fixed the linting issues

parent c3f45828
......@@ -217,15 +217,19 @@ class Label < ApplicationRecord
end
def title=(value)
super if value.blank?
write_attribute(:title, sanitize_value(value))
if value.blank?
super
else
write_attribute(:title, sanitize_value(value))
end
end
def description=(value)
return super if value.blank?
write_attribute(:description, sanitize_value(value))
if value.blank?
super
else
write_attribute(:description, sanitize_value(value))
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