Chatwoot/app/controllers/concerns/label_concern.rb

11 lines
175 B
Ruby
Raw Permalink Normal View History

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