mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
13 lines
381 B
Ruby
13 lines
381 B
Ruby
# frozen_string_literal: true
|
|
|
|
# API Controller for resources of type PlanLimitation
|
|
# PlanLimitation allows to restrict bookings of resources for the subscribers of that plan.
|
|
class API::PlanLimitationsController < API::ApiController
|
|
def destroy
|
|
@limitation = PlanLimitation.find(params[:id])
|
|
authorize @limitation
|
|
@limitation.destroy
|
|
head :no_content
|
|
end
|
|
end
|