Sha256: ed730c13610c73da87989e788ed6ba77a307c820f036b9c446ed6e0dc6d165fc
Contents?: true
Size: 413 Bytes
Versions: 13
Compression:
Stored size: 413 Bytes
Contents
module ROM module SQL module Associations # Core SQL association API # # @api private module Core # @api private def preload(target, loaded) source_key, target_key = join_keys.flatten(1) target_pks = loaded.pluck(source_key.key) target_pks.uniq! target.where(target_key => target_pks) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems