about summary refs log tree commit diff
path: root/app/controllers/about_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-04 15:26:57 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-04 15:28:12 +0200
commit5f54981846508daf9558f66ffd70d42d8213bea9 (patch)
tree0ccd822d4e04a3082bb4bf9adc6cdb981f05425e /app/controllers/about_controller.rb
parent405c495c234d80a036a37052841850be29000d0b (diff)
New admin setting: open/close registrations, with custom message, from the admin UI
Diffstat (limited to 'app/controllers/about_controller.rb')
-rw-r--r--app/controllers/about_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb
index abf4b7df4..7fd43489f 100644
--- a/app/controllers/about_controller.rb
+++ b/app/controllers/about_controller.rb
@@ -4,7 +4,9 @@ class AboutController < ApplicationController
   before_action :set_body_classes
 
   def index
-    @description = Setting.site_description
+    @description                  = Setting.site_description
+    @open_registrations           = Setting.open_registrations
+    @closed_registrations_message = Setting.closed_registrations_message
 
     @user = User.new
     @user.build_account