couchrest_session_store 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/couchrest_session_store.rb +6 -2
  2. metadata +2 -2
@@ -27,12 +27,16 @@ class CouchRestSessionStore < ActionDispatch::Session::AbstractStore
27
27
 
28
28
  def initialize(app, options = {})
29
29
  super
30
- self.class.use_database options[:database] || "sessions"
31
30
  end
32
31
 
33
32
  # just fetch from the config
34
33
  def self.database
35
- @database ||= prepare_database
34
+ @database ||= initialize_database
35
+ end
36
+
37
+ def initialize_database
38
+ self.class.use_database options[:database] || "sessions"
39
+ prepare_database
36
40
  end
37
41
 
38
42
  def database
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-07 00:00:00.000000000 Z
12
+ date: 2013-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: couchrest