From 00ffc5ece65f45179502baed8f80a388fbe3fadf Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 29 Jul 2013 17:14:55 +0400 Subject: [PATCH] abf/abf-ideas#83: changed type of #remove_repo_lock_file action, updated text messages --- app/controllers/api/v1/repositories_controller.rb | 4 ++-- config/routes.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/repositories_controller.rb b/app/controllers/api/v1/repositories_controller.rb index f04b30003..a5d7a2f60 100644 --- a/app/controllers/api/v1/repositories_controller.rb +++ b/app/controllers/api/v1/repositories_controller.rb @@ -35,12 +35,12 @@ class Api::V1::RepositoriesController < Api::V1::BaseController def add_repo_lock_file @repository.add_repo_lock_file - render_json_response @repository, 'Repository has been locked for sync successfully' + render_json_response @repository, "'.repo.lock' file has been added to repository successfully" end def remove_repo_lock_file @repository.remove_repo_lock_file - render_json_response @repository, 'Repository has been unlocked for sync successfully' + render_json_response @repository, "'.repo.lock' file has been removed from repository successfully" end def add_project diff --git a/config/routes.rb b/config/routes.rb index 5fb294376..ea1cfcdb3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -47,7 +47,7 @@ Rosa::Application.routes.draw do delete :remove_project put :signatures put :add_repo_lock_file - put :remove_repo_lock_file + delete :remove_repo_lock_file } end resources :projects, :only => [:index, :show, :update, :create, :destroy] do