rails-default-database 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rails-default-database.rb +12 -2
  2. metadata +2 -2
@@ -1,8 +1,18 @@
1
1
  Rails::Application::Configuration.class_eval do
2
2
 
3
3
  def database_configuration_with_default
4
- database_configuration_without_default
5
- rescue Errno::ENOENT
4
+ config_file = begin
5
+ database_configuration_without_default
6
+ rescue Errno::ENOENT
7
+ {}
8
+ end
9
+
10
+ default_config.merge(config_file)
11
+ end
12
+
13
+ private
14
+
15
+ def default_config
6
16
  name = File.basename(root)
7
17
  generator = begin
8
18
  require 'pg'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails-default-database
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tim Pope
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-30 00:00:00 -04:00
13
+ date: 2011-04-21 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency