couchrest_session_store 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/couchrest_session_store.rb +7 -2
  2. metadata +1 -1
@@ -27,6 +27,11 @@ class CouchRestSessionStore < ActionDispatch::Session::AbstractStore
27
27
 
28
28
  def initialize(app, options = {})
29
29
  super
30
+ self.class.set_options(options)
31
+ end
32
+
33
+ def self.set_options(options)
34
+ @options = options
30
35
  end
31
36
 
32
37
  # just fetch from the config
@@ -34,8 +39,8 @@ class CouchRestSessionStore < ActionDispatch::Session::AbstractStore
34
39
  @database ||= initialize_database
35
40
  end
36
41
 
37
- def initialize_database
38
- self.class.use_database options[:database] || "sessions"
42
+ def self.initialize_database
43
+ use_database @options[:database] || "sessions"
39
44
  prepare_database
40
45
  end
41
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchrest_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: