Skip to content

Commit d51172d

Browse files
committed
activerecord: add missing require statements
I have a project that users ActiveRecord without the rest of rails, and without bundler. When upgrading from 6.0 to 6.1, I started getting `unitialized constant ..::URI` errors.
1 parent 30363d0 commit d51172d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

activerecord/lib/active_record/database_configurations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require "uri"
34
require "active_record/database_configurations/database_config"
45
require "active_record/database_configurations/hash_config"
56
require "active_record/database_configurations/url_config"

activerecord/lib/active_record/database_configurations/connection_url_resolver.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require "uri"
34
require "active_support/core_ext/enumerable"
45

56
module ActiveRecord

0 commit comments

Comments
 (0)