Skip to content

Commit 6ffa34d

Browse files
committed
Register autoload for ActiveRecord::LogSubscriber
Before f56b418 this constant was being loaded in the railtie, but it was removed since we didn't needed it anymore. It causes some application to break if they try to reference the subscriber before `ActiveRecord::Base` is loaded.
1 parent be667d6 commit 6ffa34d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/lib/active_record.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module ActiveRecord
5050
autoload :Inheritance
5151
autoload :Integration
5252
autoload :InternalMetadata
53+
autoload :LogSubscriber
5354
autoload :Migration
5455
autoload :Migrator, "active_record/migration"
5556
autoload :ModelSchema

0 commit comments

Comments
 (0)