Skip to Content Skip to Search

class ActiveRecord::StrictLoadingViolationError

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.

Inherits From

Definition files