Flowdock
method

strict_loading!

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Core
strict_loading!() public

Sets the record to strict_loading mode. This will raise an error if the record tries to lazily load an association.

user = User.first
user.strict_loading!
user.comments.to_a
=> ActiveRecord::StrictLoadingViolationError
Show source
Register or log in to add new notes.