summaryrefslogtreecommitdiff
path: root/lib/api/variables.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-11-24 13:30:53 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2016-11-24 13:35:26 +0100
commit9dfbfbb2d10dfc6297acff1b59dfbaf43b848d96 (patch)
treec503432eaef1c4c658b79c9b5e5e4d17d592c78f /lib/api/variables.rb
parenta44c9b9e8e8dfbbc37056e812c3b263eb92b644b (diff)
downloadgitlab-ce-9dfbfbb2d10dfc6297acff1b59dfbaf43b848d96.tar.gz
Don't convert data which already is the target typeapi-no-convert
Diffstat (limited to 'lib/api/variables.rb')
-rw-r--r--lib/api/variables.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb
index 90f904b8a12..f623b1dfe9f 100644
--- a/lib/api/variables.rb
+++ b/lib/api/variables.rb
@@ -30,7 +30,7 @@ module API
end
get ':id/variables/:key' do
key = params[:key]
- variable = user_project.variables.find_by(key: key.to_s)
+ variable = user_project.variables.find_by(key: key)
return not_found!('Variable') unless variable