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.
- checksums.yaml +4 -4
- data/lib/sinatra/activerecord.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a3137a17a6efe1acd0cd17bfd4460801a531108
|
4
|
+
data.tar.gz: 6fae9c32465c409789020173d848f42f334812fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 201c0925d1a44358b5fcf3f39b99a539c988c98f1f052c27a77416e1c3f569e17f1964b006c57c315b80beb05e7c8d6780699a42aedf46523a6d4dcbea5cafa6
|
7
|
+
data.tar.gz: ba49e78fb10532c1842136f8d2b89b2abf0b4552ae96ab3c17fd5e69e795a336aaaa6e669a60ec763a38cdcc4677d66e90a048309f8109948402c5e9519aeeed
|
data/lib/sinatra/activerecord.rb
CHANGED
@@ -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.
|
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.
|
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-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|