feat: API to add label to contacts (#1563)
This commit is contained in:
11
app/models/concerns/labelable.rb
Normal file
11
app/models/concerns/labelable.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module Labelable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
acts_as_taggable_on :labels
|
||||
end
|
||||
|
||||
def update_labels(labels = nil)
|
||||
update!(label_list: labels)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user