Flowdock
method

strict_loading_violation!

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Core
strict_loading_violation!(owner:, reflection:) 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/core.rb, line 226
      def self.strict_loading_violation!(owner,, reflection)) # :nodoc:
        case ActiveRecord.action_on_strict_loading_violation
        when :raise
          message = reflection.strict_loading_violation_message(owner)
          raise ActiveRecord::StrictLoadingViolationError.new(message)
        when :log
          name = "strict_loading_violation.active_record"
          ActiveSupport::Notifications.instrument(name, owner: owner, reflection: reflection)
        end
      end
Register or log in to add new notes.