Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
app/controllers/api/v1/smart_proxies_controller.rb | ||
---|---|---|
module Api
|
||
module V1
|
||
class SmartProxiesController < V1::BaseController
|
||
|
||
include Api::ImportPuppetclassesCommonController
|
||
before_filter :find_resource, :only => %w{show update destroy refresh}
|
||
before_filter :check_feature_type, :only => :index
|
||
... | ... | |
end
|
||
|
||
private
|
||
|
||
def action_permission
|
||
case params[:action]
|
||
when 'refresh'
|
||
... | ... | |
raise ArgumentError, "Invalid feature type. Select one of: #{allowed_types.join(", ")}."
|
||
end
|
||
end
|
||
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines