sinatra-activerecord 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sinatra/activerecord.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b0236f81917295c7962cbbf3fe186bb28ea04e0
4
- data.tar.gz: 6622f9b8036ac5885bbe868b70ecee7ee33b03b8
3
+ metadata.gz: 2a3137a17a6efe1acd0cd17bfd4460801a531108
4
+ data.tar.gz: 6fae9c32465c409789020173d848f42f334812fe
5
5
  SHA512:
6
- metadata.gz: 34c7a5edfaa25626b9edd3cae93509d69dccd742ee889f0577d8800cd198ba40968e7869cef1770c06f5985da188959440bd66dd78f24bf2f966444936536618
7
- data.tar.gz: 67b74ed1a0bd594ad2609f3fddae9bdae1e468ce37f176b168c7d1028be07f122cf7646cddf28dd1f0a732b0cdb0a8852a121db4728ec1a8de34f683a58c0c20
6
+ metadata.gz: 201c0925d1a44358b5fcf3f39b99a539c988c98f1f052c27a77416e1c3f569e17f1964b006c57c315b80beb05e7c8d6780699a42aedf46523a6d4dcbea5cafa6
7
+ data.tar.gz: ba49e78fb10532c1842136f8d2b89b2abf0b4552ae96ab3c17fd5e69e795a336aaaa6e669a60ec763a38cdcc4677d66e90a048309f8109948402c5e9519aeeed
@@ -24,9 +24,9 @@ module Sinatra
24
24
 
25
25
  app.helpers ActiveRecordHelper
26
26
 
27
- # re-connect if database connection dropped
27
+ # re-connect if database connection dropped (Rails 3 only)
28
28
  app.before { ActiveRecord::Base.verify_active_connections! if ActiveRecord::Base.respond_to?(:verify_active_connections!) }
29
- app.after { ActiveRecord::Base.clear_active_connections! }
29
+ app.use ActiveRecord::ConnectionAdapters::ConnectionManagement
30
30
  end
31
31
 
32
32
  def database_file=(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-21 00:00:00.000000000 Z
12
+ date: 2015-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra