aboutsummaryrefslogtreecommitdiffstats
path: root/collector/settings.rb
diff options
context:
space:
mode:
authorrhenium <re4k@re4k.info>2013-05-11 08:56:02 +0900
committerrhenium <re4k@re4k.info>2013-05-11 08:56:02 +0900
commit73fc0f1c0fbcc71743df2b8fba3c155986cf4cf9 (patch)
tree4e0694e4b15efd510e1461f578f15521ff3d8d14 /collector/settings.rb
parentbd35c7dad0c8481f508e21815faa1f2d41287465 (diff)
downloadaclog-73fc0f1c0fbcc71743df2b8fba3c155986cf4cf9.tar.gz
update collector
Diffstat (limited to 'collector/settings.rb')
-rw-r--r--collector/settings.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/collector/settings.rb b/collector/settings.rb
index 562bd75..71c8c28 100644
--- a/collector/settings.rb
+++ b/collector/settings.rb
@@ -1,6 +1,10 @@
require "settingslogic"
class Settings < Settingslogic
+ def self.env
+ ENV["RAILS_ENV"] || "development"
+ end
+
source "settings.yml"
- namespace ENV["RAILS_ENV"]
+ namespace env
end