diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-07-20 08:55:44 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-07-20 08:55:44 +0200 |
commit | 839aec1a61b5b8003e27091a871c8988fbf8892c (patch) | |
tree | 861afe2f65314730e46ce90e2ea3c5e8a3d8c3b5 /lib/api/commit_statuses.rb | |
parent | 1cd573ee7f03bcb356478aab5900fae4618b53ec (diff) | |
download | gitlab-ce-839aec1a61b5b8003e27091a871c8988fbf8892c.tar.gz |
Replace parse_boolean with to_boolean
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r-- | lib/api/commit_statuses.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb index acb4812b5cf..4df6ca8333e 100644 --- a/lib/api/commit_statuses.rb +++ b/lib/api/commit_statuses.rb @@ -24,7 +24,7 @@ module API pipelines = user_project.pipelines.where(sha: params[:sha]) statuses = ::CommitStatus.where(pipeline: pipelines) - statuses = statuses.latest unless parse_boolean(params[:all]) + statuses = statuses.latest unless to_boolean(params[:all]) statuses = statuses.where(ref: params[:ref]) if params[:ref].present? statuses = statuses.where(stage: params[:stage]) if params[:stage].present? statuses = statuses.where(name: params[:name]) if params[:name].present? |