Exception: ActiveRecord::StrictLoadingViolationError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ActiveRecordError ,
StandardError
|
|
Instance Chain:
self,
ActiveRecordError ,
StandardError
|
|
Inherits: |
ActiveRecord::ActiveRecordError
|
Defined in: | activerecord/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}.