diff --git a/config/config.yml b/config/config.yml new file mode 100644 index 0000000..c9d6c04 --- /dev/null +++ b/config/config.yml @@ -0,0 +1 @@ +email_at_notices: [1, 10, 100] \ No newline at end of file diff --git a/config/initializers/load_config.rb b/config/initializers/load_config.rb new file mode 100644 index 0000000..b8e8b88 --- /dev/null +++ b/config/initializers/load_config.rb @@ -0,0 +1,8 @@ +require 'ostruct' + +yaml = File.read(Rails.root.join('config','config.yml')) +config = YAML.load(yaml) + +config.merge!(config.delete(Rails.env)) if config.has_key?(Rails.env) + +::App = OpenStruct.new(config) \ No newline at end of file -- libgit2 0.21.2