search for: usageservice

Displaying 1 result from an estimated 1 matches for "usageservice".

Did you mean: usage_service
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
.../usage_service.rb diff --git a/src/app/controllers/usages_controller.rb b/src/app/controllers/usages_controller.rb new file mode 100644 index 0000000..0da324e --- /dev/null +++ b/src/app/controllers/usages_controller.rb @@ -0,0 +1,13 @@ +class UsagesController < ApplicationController + include UsageService + + def create + usage = svc_create(params[:usage]) + render :json => { :success => true, :data => usage } + end + + def remove + removed_ids = svc_destroy_all(params[:ids]) + render :json => { :success => true, :removed => removed_ids } + end +end diff --git a/src...