Chatwoot/app/models/concerns/labelable.rb

12 lines
179 B
Ruby
Raw Normal View History

module Labelable
extend ActiveSupport::Concern
included do
acts_as_taggable_on :labels
end
def update_labels(labels = nil)
update!(label_list: labels)
end
end