summaryrefslogtreecommitdiff
path: root/certs/lib/leap_web_certs
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-07 21:03:51 +0100
committerAzul <azul@leap.se>2013-01-07 21:03:51 +0100
commitda5718fe3bcc416dc12ec6892dd8a79ce37525d4 (patch)
tree27f8ca901e84bc90943d2843e6b167ea2374397b /certs/lib/leap_web_certs
parent48258a0df7d4715a2b5533d94ef0f5906f08ea96 (diff)
attempting to work around server failure
Diffstat (limited to 'certs/lib/leap_web_certs')
-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