Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2017-03-06 08:03:21 +0300
committerSam Rose <sam@gitlab.com>2017-03-14 13:58:20 +0300
commit435458d2b14eadd1768b7b0a14f5966633f02f83 (patch)
treeebbd64338beb819fdaf8fc4b320d5c3a848982b2 /lib/gitlab/gon_helper.rb
parentb3eda944454cb180cdefb8ddff35fdeb729e3ed5 (diff)
Update API on frontend to use v4
Use options object to pass params for project endpoint
Diffstat (limited to 'lib/gitlab/gon_helper.rb')
-rw-r--r--lib/gitlab/gon_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb
index 6c275a8d5de..5ab84266b7d 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -1,7 +1,7 @@
module Gitlab
module GonHelper
def add_gon_variables
- gon.api_version = 'v3' # v4 Is not officially released yet, therefore can't be considered as "frozen"
+ gon.api_version = 'v4'
gon.default_avatar_url = URI.join(Gitlab.config.gitlab.url, ActionController::Base.helpers.image_path('no_avatar.png')).to_s
gon.max_file_size = current_application_settings.max_attachment_size
gon.asset_host = ActionController::Base.asset_host