module Sequel::Plugins::TacticalEagerLoading::InstanceMethods

  1. lib/sequel/plugins/tactical_eager_loading.rb

Methods

Public Instance

  1. marshallable!
  2. retrieved_by
  3. retrieved_with

Attributes

retrieved_by [RW]

The dataset that retrieved this object, set if the object was reteived via Dataset#all.

retrieved_with [RW]

All model objects retrieved with this object, set if the object was reteived via Dataset#all.

Public Instance methods

marshallable!()

Remove retrieved_by and retrieved_with when marshalling. retrieved_by contains unmarshallable objects, and retrieved_with can be very large and is not helpful without retrieved_by.

[show source]
    # File lib/sequel/plugins/tactical_eager_loading.rb
139 def marshallable!
140   @retrieved_by = nil
141   @retrieved_with = nil
142   super
143 end