Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ class ResourceQuotasController < ::Api::V2::BaseController
resource_id 'resource_quota'
api_version 'v2'
api_base_url '/foreman_resource_quota/api'
end

begin
# add backwords compatibility here, the method is only available for Foreman 3.14
hide_taxonomy_options
rescue NameError
# we can ignore the error
# resource quota are not bound to org/loc - so we remove the parameters from api here
# loc/org are inherited from the ::Api::V2::BaseController in Foreman
param :location_id, Integer, show: false
param :organization_id, Integer, show: false
end

before_action :find_resource, only: %i[show update destroy]
Expand Down
Loading