Module: Foreman::Controller::Parameters::ResourceQuota

Extended by:
ActiveSupport::Concern
Included in:
ForemanResourceQuota::Api::V2::ResourceQuotasController, ForemanResourceQuota::ResourceQuotasController
Defined in:
app/controllers/concerns/foreman/controller/parameters/resource_quota.rb

Instance Method Summary collapse

Instance Method Details

#resource_quota_paramsObject



21
22
23
24
# File 'app/controllers/concerns/foreman/controller/parameters/resource_quota.rb', line 21

def resource_quota_params
  param_name = parameter_filter_context.api? ? 'resource_quota' : 'foreman_resource_quota_resource_quota'
  self.class.resource_quota_params_filter.filter_params(params, parameter_filter_context, param_name)
end