module Sequel::Plugins::AssociationLazyEagerOption::InstanceMethods
Private Instance Methods
_associated_dataset(opts, dynamic_opts)
click to toggle source
Return a dataset for the association after applying any dynamic callback.
Calls superclass method
# File lib/sequel/plugins/association_lazy_eager_option.rb, line 41 def _associated_dataset(opts, dynamic_opts) ds = super if eager = dynamic_opts[:eager] ds = ds.eager(eager) end ds end
_associated_object_loader(opts, dynamic_opts)
click to toggle source
A placeholder literalizer that can be used to load the association, or nil to not use one.
Calls superclass method
# File lib/sequel/plugins/association_lazy_eager_option.rb, line 52 def _associated_object_loader(opts, dynamic_opts) return if dynamic_opts[:eager] super end
load_with_primary_key_lookup?(opts, dynamic_opts)
click to toggle source
Whether to use a simple primary key lookup on the associated class when loading.
Calls superclass method
# File lib/sequel/plugins/association_lazy_eager_option.rb, line 58 def load_with_primary_key_lookup?(opts, dynamic_opts) return false if dynamic_opts[:eager] super end