summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-11-02 11:12:15 -0700
committerjessib <jessib@riseup.net>2012-11-02 11:12:15 -0700
commit4db41d772725387ba36240cf8f3529780e896755 (patch)
tree4c4e0f7651ee100f93273775ec934dba1a934724 /config
parent8b5f7fb6ef438ef034541d6fb500b5ab7e12f3f2 (diff)
parent872b9fa6759d5708f5efb19ba46b3c8e2b5d4862 (diff)
Merge branch 'feature-admin_users' into help_develop
Diffstat (limited to 'config')
-rw-r--r--config/config.yml.example8
-rw-r--r--config/initializers/load_config.rb1
2 files changed, 9 insertions, 0 deletions
diff --git a/config/config.yml.example b/config/config.yml.example
new file mode 100644
index 0000000..e3a0112
--- /dev/null
+++ b/config/config.yml.example
@@ -0,0 +1,8 @@
+development:
+ admins: [admin, admin2]
+
+test:
+ admins: [admin, admin2]
+
+production
+ admins: []
diff --git a/config/initializers/load_config.rb b/config/initializers/load_config.rb
new file mode 100644
index 0000000..e687429
--- /dev/null
+++ b/config/initializers/load_config.rb
@@ -0,0 +1 @@
+APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]