summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-05 08:22:29 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-19 17:24:59 +0100
commit293999cabbceab43ca82c5178285d52dfb55cb08 (patch)
treeefa39c89eb4288663452271e7ee4f2a02ec64343 /lib
parentec5c3c029ce220f5a1c0fd10d0d3bf17951a07c9 (diff)
downloadgitlab-ce-293999cabbceab43ca82c5178285d52dfb55cb08.tar.gz
Fix name of build erasable, remove superfluous method from it
Diffstat (limited to 'lib')
-rw-r--r--lib/api/builds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index 06ec03fc4e0..9b7a3f12d2b 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -136,7 +136,7 @@ module API
build = get_build(params[:build_id])
return not_found!(build) unless build
- return forbidden!('Build is not eraseable!') unless build.eraseable?
+ return forbidden!('Build is not erasable!') unless build.erasable?
build.erase!
present build, with: Entities::Build,