introduced ability to auto detect CNAME of custom domain

This commit is contained in:
shlok007 2017-08-08 22:47:04 +05:30
parent a612c2e5ea
commit b1624a6812
5 changed files with 41 additions and 8 deletions

View file

@ -4,7 +4,9 @@ module Admin
load_resource :program, through: :conference, singleton: true, except: :index
load_resource :user, only: [:remove_user]
def custom_domain; end
def custom_domain
redirect_to attach_custom_domain_admin_conference_path(@conference.short_title) unless @conference.custom_domain.present?
end
def attach_custom_domain; end