Flowdock
method

strict_loading_violation

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::LogSubscriber
strict_loading_violation(event) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.