grape-activerecord 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grape/activerecord/activerecord.rb +1 -2
- data/lib/grape/activerecord/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277fa119f61a75f2b6920ad1e4b885d23e687fc3
|
4
|
+
data.tar.gz: 30829e43950d647ceb2290983c6121948863b9fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6377dc5c48e482106997bc2a75aa238dac39c09b3a2eebdd5ba85392518742d1eb8accdc5de240585b5daa223ae263f3c9f8f05eaa332d58ddbf1a879fb056a7
|
7
|
+
data.tar.gz: 03cada4ffaa98838717c078b1a18d5c30f61d6e66fc0ca5eb8e104413e54f9f466492e37ccc018c15b4be99760884a2810fb7479cc6ad93aaa83de457b9d4f8f
|
@@ -14,8 +14,7 @@ module Grape
|
|
14
14
|
|
15
15
|
# Connect to database with a DB URL. Example: "postgres://user:pass@localhost/db"
|
16
16
|
def self.database_url=(url)
|
17
|
-
::ActiveRecord::
|
18
|
-
::ActiveRecord::Base.configurations = {RACK_ENV.to_s => ::ActiveRecord::Base.connection.pool.spec.config}
|
17
|
+
self.database = ::ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver.new(url).to_hash
|
19
18
|
end
|
20
19
|
|
21
20
|
# Connect to database with a yml file. Example: "config/database.yml"
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.4.5
|
90
|
+
rubygems_version: 2.4.5.1
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: ActiveRecord integration for Grape
|