module Sequel::Plugins::TacticalEagerLoading::DatasetMethods
Private Instance Methods
post_load(objects)
click to toggle source
Set the retrieved_with and retrieved_by attributes for the object with the current dataset and array of all objects.
Calls superclass method
# File lib/sequel/plugins/tactical_eager_loading.rb 117 def post_load(objects) 118 super 119 objects.each do |o| 120 next unless o.is_a?(Sequel::Model) 121 o.retrieved_by = self 122 o.retrieved_with = objects 123 end 124 end