Class: ForumsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ForumsController
- 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, #get_or_check_readonly_mode, #get_or_check_staff_writes_only_mode, included, #staff_writes_only_mode?
Instance Method Details
#status ⇒ Object
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 |