instance method strict_loading_violation

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v8.0.4

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4

Signature

strict_loading_violation(event)

No documentation comment.

Parameters

event req
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 22
    def strict_loading_violation(event)
      debug do
        owner = event.payload[:owner]
        association = event.payload[:reflection].klass
        name = event.payload[:reflection].name

        color("Strict loading violation: #{owner} is marked for strict loading. The #{association} association named :#{name} cannot be lazily loaded.", RED)
      end
    end

Defined in activerecord/lib/active_record/log_subscriber.rb line 22 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::LogSubscriber

Type at least 2 characters to search.

↑↓ navigate · open · esc close