Rails has added strict loading mode to prevent lazy loading
Rails 6.1 has added strict_loading mode to prevent lazy loading of associations. When the strict_loading mode is used, the associated records will have to be eager loaded using includes else a ActiveRecord::StrictLoadingViolationError will be raised.
Rails has added strict loading mode to prevent lazy loading #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/rails-has-added-strict-loading-mode-to-prevent-lazy-loading