Chatwoot/app/models/concerns/labelable.rb
2021-01-03 20:07:57 +05:30

11 lines
179 B
Ruby

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