Skip to content

Commit bd1577b

Browse files
committed
Add changelog, tweak patch
1 parent e20b8e1 commit bd1577b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
rails commands that do not use spring (e.g. `bin/rails server` would
88
emit this when you ^C to exit)
99
* Fix `reload!` in rails console
10+
* Don't connect/disconnect the database if there are no connections
11+
configured. Issue #256.
1012

1113
## 1.1.1
1214

lib/spring/application.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ def reset_streams
299299
private
300300

301301
def active_record_configured?
302-
defined?(ActiveRecord::Base) && ActiveRecord::Base.configurations.present?
302+
defined?(ActiveRecord::Base) && ActiveRecord::Base.configurations.any?
303303
end
304-
305304
end
306305
end

0 commit comments

Comments
 (0)