Limit what label fields we expose on Dashboard::LabelsController#index

parent 933ebb8f
class Dashboard::LabelsController < Dashboard::ApplicationController
def index
labels = LabelsFinder.new(current_user).execute
respond_to do |format|
format.json { render json: LabelsFinder.new(current_user).execute }
format.json { render json: labels.as_json(only: [:id, :title, :color]) }
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment