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

parent 36fee24c
...@@ -18,7 +18,7 @@ class Projects::LabelsController < Projects::ApplicationController ...@@ -18,7 +18,7 @@ class Projects::LabelsController < Projects::ApplicationController
respond_to do |format| respond_to do |format|
format.html format.html
format.json do format.json do
render json: @labels render json: @labels.as_json(only: [:id, :title, :color])
end end
end 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