grape-activerecord 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/grape/activerecord/extension.rb +2 -3
- data/lib/grape/activerecord/version.rb +1 -1
- 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: a43c454c0c8e5230e134d511464e14c2a4c062cc
|
|
4
|
+
data.tar.gz: 1e20319511f7e845eba87ee9b4c094edf97efc5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c66769c829618a12fe5f451b21e624b13675c90f02f305b136ecc6c60635b069500a561bd71a878063976c64307b3b953c3fe2e1966059fde51060849038afc
|
|
7
|
+
data.tar.gz: 266665d7de890be4d804296ff2eb9396da0fa1478d54a7d6d769c5b9343a979b61244ee7a227993ad7bb343addf96497c73a7c7c7fdbea9ae45f53b5c9fa7e90
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
module Grape
|
|
2
2
|
module ActiveRecord
|
|
3
|
-
# Including this module in your Grape app establishes the database connection and connection management
|
|
3
|
+
# Including this module in your Grape app establishes the database connection and handles connection management
|
|
4
4
|
module Extension
|
|
5
5
|
# Establishes db connection and management
|
|
6
6
|
def self.included(app)
|
|
7
7
|
Grape::ActiveRecord.setup!
|
|
8
|
-
app.
|
|
9
|
-
app.after { ::ActiveRecord::Base.clear_active_connections! }
|
|
8
|
+
app.use ::ActiveRecord::ConnectionAdapters::ConnectionManagement
|
|
10
9
|
end
|
|
11
10
|
end
|
|
12
11
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jordan Hollinger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grape
|