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

Fixed the linting issues

parent c3f45828
...@@ -217,16 +217,20 @@ class Label < ApplicationRecord ...@@ -217,16 +217,20 @@ class Label < ApplicationRecord
end end
def title=(value) def title=(value)
super if value.blank? if value.blank?
super
else
write_attribute(:title, sanitize_value(value)) write_attribute(:title, sanitize_value(value))
end end
end
def description=(value) def description=(value)
return super if value.blank? if value.blank?
super
else
write_attribute(:description, sanitize_value(value)) write_attribute(:description, sanitize_value(value))
end end
end
## ##
# Returns the String necessary to reference this Label in Markdown # Returns the String necessary to reference this Label in Markdown
......
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