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

10 lines
175 B
Ruby

module LabelConcern
def create
model.update_labels(permitted_params[:labels])
@labels = model.label_list
end
def index
@labels = model.label_list
end
end