Permalink
Browse files

Minor clean up.

Change-Id: I33f0819afa68d32fa6f19dc0d79244ca3981ba26
  • Loading branch information...
1 parent a2d81d8 commit f5a12f352d4f5f4f54b97ba772f7786b9fac670a @joeldsa joeldsa committed Mar 13, 2012
View
@@ -1,3 +1,4 @@
.idea/*
cov/
*.sw*
+.bundle
View
@@ -1,4 +0,0 @@
-[gerrit]
-host=cloudfoundry-codereview.qa.mozycloud.com
-port=29418
-project=acm
@@ -18,9 +18,7 @@ class ApiController < Sinatra::Base
get '/groups/:group_id' do
content_type 'application/json', :charset => 'utf-8', :schema => ACM::Config.default_schema_version
- response = @group_service.find_group(params[:group_id])
-
- response
+ @group_service.find_group(params[:group_id])
end
delete '/groups/:group_id' do
@@ -19,17 +19,13 @@ class ApiController < Sinatra::Base
get '/objects/:object_id' do
content_type 'application/json', :charset => 'utf-8', :schema => ACM::Config.default_schema_version
- response = @object_service.read_object(params[:object_id])
-
- response
+ @object_service.read_object(params[:object_id])
end
get '/objects/:object_id/users' do
content_type 'application/json', :charset => 'utf-8', :schema => ACM::Config.default_schema_version
- response = @object_service.get_users_for_object(params[:object_id])
-
- response.to_json
+ @object_service.get_users_for_object(params[:object_id])
end
delete '/objects/:object_id' do
@@ -18,17 +18,13 @@ class ApiController < Sinatra::Base
post '/users/:user_id' do
content_type 'application/json', :charset => 'utf-8', :schema => ACM::Config.default_schema_version
- response = @user_service.create_user(:id => params[:user_id])
-
- response
+ @user_service.create_user(:id => params[:user_id])
end
get '/users/:user_id' do
content_type 'application/json', :charset => 'utf-8', :schema => ACM::Config.default_schema_version
- response = @user_service.get_user_info(params[:user_id])
-
- response
+ @user_service.get_user_info(params[:user_id])
end
end
@@ -543,7 +543,7 @@ def get_users_for_object(obj_id)
}
end
- user_permission_entries
+ user_permission_entries.to_json
end
end

0 comments on commit f5a12f3

Please sign in to comment.