2018-09-25 23:45:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-11-05 05:16:41 -05:00
|
|
|
class Projects::ReleasesController < Projects::ApplicationController
|
|
|
|
# Authorize
|
|
|
|
before_action :require_non_empty_project
|
|
|
|
before_action :authorize_download_code!
|
2018-12-17 04:53:17 -05:00
|
|
|
before_action :check_releases_page_feature_flag
|
2018-12-10 07:03:00 -05:00
|
|
|
|
|
|
|
def index
|
|
|
|
end
|
2015-11-05 05:16:41 -05:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2018-12-10 07:03:00 -05:00
|
|
|
def check_releases_page_feature_flag
|
|
|
|
return render_404 unless Feature.enabled?(:releases_page)
|
|
|
|
|
|
|
|
push_frontend_feature_flag(:releases_page)
|
|
|
|
end
|
2015-11-05 05:16:41 -05:00
|
|
|
end
|