summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--certs/lib/leap_web_certs/engine.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/certs/lib/leap_web_certs/engine.rb b/certs/lib/leap_web_certs/engine.rb
index 471c648..bc0801d 100644
--- a/certs/lib/leap_web_certs/engine.rb
+++ b/certs/lib/leap_web_certs/engine.rb
@@ -1,6 +1,13 @@
require "leap_web_core"
require "leap_ca/config"
LeapCA::Config.db_name = "client_certificates"
+
+# couchrest model has an initializer for this - but apparently that does not work
+CouchRest::Model::Base.configure do |conf|
+ conf.environment = Rails.env
+ conf.connection_config_file = File.join(Rails.root, 'config', 'couchdb.yml')
+end
+
require "leap_ca/cert"
module LeapWebCerts