Make JS use API v3 because v4 is not frozen yet
This commit is contained in:
parent
11dd2348c4
commit
5a4ad9abce
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
module Gitlab
|
||||
module GonHelper
|
||||
def add_gon_variables
|
||||
gon.api_version = API::API.version
|
||||
gon.api_version = 'v3' # v4 Is not officially released yet, therefore can't be considered as "frozen"
|
||||
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.relative_url_root = Gitlab.config.gitlab.relative_url_root
|
||||
|
|
Loading…
Reference in a new issue