From a2a8caf577415ef51c0f99da43f9b47bde226fc6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 29 Oct 2012 12:08:25 +0100 Subject: first steps at is_admin? --- config/initializers/load_config.rb | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/initializers/load_config.rb (limited to 'config') 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] -- cgit v1.2.3 From 6c60b179a09030da985462d15dbdf076367b5ea4 Mon Sep 17 00:00:00 2001 From: jessib Date: Wed, 31 Oct 2012 12:10:07 -0700 Subject: Code to check administration (and ugly test display.) This includes example config file. --- config/config.yml.example | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config/config.yml.example (limited to 'config') 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: [] -- cgit v1.2.3 From 2264623a445bf5c64404ef302f63e4d99ecbd97f Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 4 Nov 2012 16:23:16 +0100 Subject: minor: yaml syntax fix --- config/config.yml.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.yml.example b/config/config.yml.example index e3a0112..c34dd10 100644 --- a/config/config.yml.example +++ b/config/config.yml.example @@ -4,5 +4,5 @@ development: test: admins: [admin, admin2] -production +production: admins: [] -- cgit v1.2.3