Exception: ActiveRecord::StrictLoadingViolationError

Inherits:
ActiveRecordError show all
Defined in:
lib/active_record/errors.rb

Overview

Raised on attempt to lazily load records that are marked as strict loading.

You can resolve this error by eager loading marked records before accessing them. The Eager Loading Associations guide covers solutions, such as using ActiveRecord::Base.includes.