11 lines
179 B
Ruby
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
|