rails_g_database 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f6e5cbf0a8a50f3b080f05efce20389b20084ae
|
4
|
+
data.tar.gz: 46a9c26694d15526e14b91a47ec7c03795458a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee22d5701f0827ebc12cff74ea7e4910b201dc5a78d5a800951f6a8b0dc070a84304cdfc143b0299b258c0bbc5e518a6dc100e3f6e9de77e3cef4f4729f32071
|
7
|
+
data.tar.gz: 02ce7227d09919b7f385544676b46c99bb74265b14f1704e05c0f58d43f3181714cb4150ad412324ac7685adf62af662ce3f5f03f4ee327c0afe7882470c3d9d
|
@@ -9,7 +9,7 @@ module <%= class_name %>
|
|
9
9
|
# since this class is only used to add custom config for AR
|
10
10
|
self.abstract_class = true
|
11
11
|
|
12
|
-
databases = YAML::load(
|
12
|
+
databases = YAML::load(ERB.new(File.read('config/database_<%= file_name %>.yml')).result)
|
13
13
|
establish_connection(databases[Rails.env])
|
14
14
|
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_g_database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- redrick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|