Disables API on planning element statuses controller.

pull/175/head
Martin Czuchra 12 years ago
parent 0de9151b77
commit 754178ffd8
  1. 4
      app/controllers/planning_element_statuses_controller.rb

@ -13,13 +13,14 @@ class PlanningElementStatusesController < ApplicationController
unloadable
helper :timelines
before_filter :disable_api
accept_key_auth :index, :show
def index
@planning_element_statuses = PlanningElementStatus.active
respond_to do |format|
format.html { render_404 }
format.api
end
end
@ -27,7 +28,6 @@ class PlanningElementStatusesController < ApplicationController
@planning_element_status = PlanningElementStatus.active.find(params[:id])
respond_to do |format|
format.html { render_404 }
format.api
end
end
end

Loading…
Cancel
Save