grape-activerecord 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40f258710a91aed710575edce515cbaf12b17c00
4
- data.tar.gz: c91ac2913e6761842ffc60434c1f59894ce60ea3
3
+ metadata.gz: a43c454c0c8e5230e134d511464e14c2a4c062cc
4
+ data.tar.gz: 1e20319511f7e845eba87ee9b4c094edf97efc5f
5
5
  SHA512:
6
- metadata.gz: 9d8f767fb5471c2cefedb1539105a1e970033b7aa8866484e37dfe1726ba469ab82b56ddb8614cca775e31208391564cd90f848e6f49cebfb0a7f8f24f1b7306
7
- data.tar.gz: 28ce37f584d292cd9f01ad73b84079e28be9a4f633154d22d0c50809c82359f841e351a1cb7aea0212d5bed9de271851cee1bb63c3d202702735dd952bf963da
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.before { ::ActiveRecord::Base.verify_active_connections! if ::ActiveRecord::Base.respond_to?(:verify_active_connections!) }
9
- app.after { ::ActiveRecord::Base.clear_active_connections! }
8
+ app.use ::ActiveRecord::ConnectionAdapters::ConnectionManagement
10
9
  end
11
10
  end
12
11
  end
@@ -1,6 +1,6 @@
1
1
  module Grape
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  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.1
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-13 00:00:00.000000000 Z
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape