method

strict_loading_violation

rails latest stable - Class: ActiveRecord::StructuredEventSubscriber

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

strict_loading_violation(event)
public

No documentation available.

# File activerecord/lib/active_record/structured_event_subscriber.rb, line 9
    def strict_loading_violation(event)
      owner = event.payload[:owner]
      reflection = event.payload[:reflection]

      emit_debug_event("active_record.strict_loading_violation",
        owner: owner.name,
        class: reflection.polymorphic? ? nil : reflection.klass.name,
        name: reflection.name,
      )
    end