diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-09-13 16:06:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 16:06:48 -0400 |
commit | b20762e56c0412aee02bd244a3128c933c484e52 (patch) | |
tree | 682025ad1e208494cd222c372eea29775ba4b7f7 | |
parent | 7454cbf7a15556f1d78e61c7d9d64c93cee79ad3 (diff) | |
parent | c35eb49a115b86aae0cb65eea067227e888d3198 (diff) | |
download | rails-b20762e56c0412aee02bd244a3128c933c484e52.tar.gz rails-b20762e56c0412aee02bd244a3128c933c484e52.tar.bz2 rails-b20762e56c0412aee02bd244a3128c933c484e52.zip |
Merge pull request #33871 from gregmolnar/database_configurations
add `any?` to DatabaseConfigurations
-rw-r--r-- | activerecord/lib/active_record/database_configurations.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/database_configurations.rb b/activerecord/lib/active_record/database_configurations.rb index 9aabde676a..9ff63c6e10 100644 --- a/activerecord/lib/active_record/database_configurations.rb +++ b/activerecord/lib/active_record/database_configurations.rb @@ -10,6 +10,7 @@ module ActiveRecord # application's database configuration hash or url string. class DatabaseConfigurations attr_reader :configurations + delegate :any?, to: :configurations def initialize(configurations = {}) @configurations = build_configs(configurations) |