Skip to content

Commit

Permalink
Properly eager load the JoinDependency autoloads
Browse files Browse the repository at this point in the history
After rails#43859, the constants were being registered to be eagear loaded
but the eager load was not being called on it, so they were still being
required at runtime.
  • Loading branch information
rafaelfranca authored and public-rant committed Feb 17, 2022
1 parent 4b99fed commit b964678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/lib/active_record/associations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ module Builder # :nodoc:
def self.eager_load!
super
Preloader.eager_load!
JoinDependency.eager_load!
end

# Returns the association instance for the given name, instantiating it if it doesn't already exist
Expand Down

0 comments on commit b964678

Please sign in to comment.