Module: MicroServiceServer::Concerns::Controllers::Clients
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/micro_service_server/concerns/controllers/clients.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 |
# File 'lib/micro_service_server/concerns/controllers/clients.rb', line 7 def create MicroserviceClientInstallJob.perform_later(install_params) render :nothing => true, :status => 204 end |
#destroy ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/micro_service_server/concerns/controllers/clients.rb', line 13 def destroy status = 403 @client = MicroService::Client.where(uninstall_params).first if @client && @client.update_attributes(:uninstalled => true) status = 204 end render :nothing => true, :status => status end |