mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
|
||||
class FinishInstallationController < ApplicationController
|
||||
skip_before_action :check_xhr, :preload_json, :redirect_to_login_if_required
|
||||
layout 'finish_installation'
|
||||
layout "finish_installation"
|
||||
|
||||
before_action :ensure_no_admins, except: ['confirm_email', 'resend_email']
|
||||
before_action :ensure_no_admins, except: %w[confirm_email resend_email]
|
||||
|
||||
def index
|
||||
end
|
||||
@ -61,7 +61,9 @@ class FinishInstallationController < ApplicationController
|
||||
end
|
||||
|
||||
def find_allowed_emails
|
||||
return [] unless GlobalSetting.respond_to?(:developer_emails) && GlobalSetting.developer_emails.present?
|
||||
unless GlobalSetting.respond_to?(:developer_emails) && GlobalSetting.developer_emails.present?
|
||||
return []
|
||||
end
|
||||
GlobalSetting.developer_emails.split(",").map(&:strip)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user