Sha256: de7fdc8d36e7a238e1f3a1493633270b3810eef1504f8e876c3a4ef6371d7fba
Contents?: true
Size: 351 Bytes
Versions: 16
Compression:
Stored size: 351 Bytes
Contents
module Graphiti module Adapters module ActiveRecord # todo change class HasManySideload < Sideload::HasMany include Inferrence def default_base_scope resource_class.model.all end def scope(parent_ids) base_scope.where(foreign_key => parent_ids) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems