Disables API on planning element type colors controller.

This commit is contained in:
Martin Czuchra
2013-06-20 17:41:14 +02:00
parent 754178ffd8
commit 11516673fa
@@ -13,7 +13,9 @@ class PlanningElementTypeColorsController < ApplicationController
unloadable
helper :timelines
before_filter :disable_api
before_filter :require_admin_unless_readonly_api_request
accept_key_auth :index, :show
helper :timelines
@@ -23,14 +25,12 @@ class PlanningElementTypeColorsController < ApplicationController
@colors = PlanningElementTypeColor.all
respond_to do |format|
format.html
format.api
end
end
def show
@color = PlanningElementTypeColor.find(params[:id])
respond_to do |format|
format.api
end
end