about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-06 17:19:26 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-06 17:19:26 +0100
commit1357c1cb3d6b5c46c96dfd2ee25a2a60bccc5092 (patch)
tree5c7f79bdbb6e03dd2eb5c6a9d51756d8955137e6 /config/initializers
parent84d2371d6a4eb928f47d436b92bc9ad292b7d452 (diff)
Add single user mode
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/single_user_mode.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/single_user_mode.rb b/config/initializers/single_user_mode.rb
new file mode 100644
index 000000000..4945f7f22
--- /dev/null
+++ b/config/initializers/single_user_mode.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+Rails.application.configure do
+  config.x.single_user_mode = ENV['SINGLE_USER_MODE'] == 'true'
+end