Select Git revision
Forked from
GitLab.org / GitLab FOSS
Source project has a limited visibility.
-
Jacob Vosmaer authored
SSL peer verification was silently enabled by the HTTParty upgrade in 8a54fda4. This patch restores the previous behaviour of GitLab 6.3 and earlier.
Jacob Vosmaer authoredSSL peer verification was silently enabled by the HTTParty upgrade in 8a54fda4. This patch restores the previous behaviour of GitLab 6.3 and earlier.
releases_controller.rb NaN GiB
class Projects::ReleasesController < Projects::ApplicationController
# Authorize
before_action :require_non_empty_project
before_action :authorize_download_code!
before_action :authorize_push_code!
before_action :tag
before_action :release
def edit
end
def update
release.update_attributes(release_params)
redirect_to namespace_project_tag_path(@project.namespace, @project, @tag.name)
end
private
def tag
@tag ||= @repository.find_tag(params[:tag_id])
end
def release
@release ||= @project.releases.find_or_initialize_by(tag: @tag.name)
end
def release_params
params.require(:release).permit(:description)
end
end