diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-15 15:49:40 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-15 15:49:40 +0000 |
commit | b04b1e12c5847f7d366e08af47115d985b73e185 (patch) | |
tree | 5077e33eedbf1e99b9ef9b87395f9acce844b234 /app/controllers/projects | |
parent | a5b9fb9abc2b83304f45392642801b28f52b3f48 (diff) | |
download | gitlab-ce-b04b1e12c5847f7d366e08af47115d985b73e185.tar.gz |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/pages_domains_controller.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/controllers/projects/pages_domains_controller.rb b/app/controllers/projects/pages_domains_controller.rb index cdf6f5ce828..cccf8fe4358 100644 --- a/app/controllers/projects/pages_domains_controller.rb +++ b/app/controllers/projects/pages_domains_controller.rb @@ -7,6 +7,8 @@ class Projects::PagesDomainsController < Projects::ApplicationController before_action :authorize_update_pages! before_action :domain, except: [:new, :create] + helper_method :domain_presenter + def show end @@ -27,7 +29,7 @@ class Projects::PagesDomainsController < Projects::ApplicationController end def retry_auto_ssl - PagesDomains::RetryAcmeOrderService.new(@domain.pages_domain).execute + PagesDomains::RetryAcmeOrderService.new(@domain).execute redirect_to project_pages_domain_path(@project, @domain) end @@ -88,6 +90,10 @@ class Projects::PagesDomainsController < Projects::ApplicationController end def domain - @domain ||= @project.pages_domains.find_by_domain!(params[:id].to_s).present(current_user: current_user) + @domain ||= @project.pages_domains.find_by_domain!(params[:id].to_s) + end + + def domain_presenter + @domain_presenter ||= domain.present(current_user: current_user) end end |