1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/controllers/api/plan_limitations_controller.rb

13 lines
381 B
Ruby
Raw Normal View History

2023-03-10 14:13:00 +01:00
# frozen_string_literal: true
# API Controller for resources of type PlanLimitation
# PlanLimitation allows to restrict bookings of resources for the subscribers of that plan.
2023-03-10 16:00:04 +01:00
class API::PlanLimitationsController < API::ApiController
2023-03-10 14:13:00 +01:00
def destroy
@limitation = PlanLimitation.find(params[:id])
authorize @limitation
@limitation.destroy
head :no_content
end
end