Class: ForumsController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ReadOnlyMixin
Defined in:
app/controllers/forums_controller.rb

Instance Method Summary collapse

Methods included from ReadOnlyMixin

#add_readonly_header, #allowed_in_staff_writes_only_mode?, #block_if_readonly_mode, #check_readonly_mode, included, #staff_writes_only_mode?

Instance Method Details

#statusObject



11
12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/forums_controller.rb', line 11

def status
  if params[:cluster]
    if GlobalSetting.cluster_name.nil?
      return render plain: "cluster name not configured", status: 500
    elsif GlobalSetting.cluster_name != params[:cluster]
      return render plain: "cluster name does not match", status: 500
    end
  end

  render plain: "ok"
end