Sha256: 6b558c838f57ddc28a5de9e18c03b83e8ae4331d0ac3b63445d528a1454059db
Contents?: true
Size: 376 Bytes
Versions: 23
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true module Bullet module Registry class Association < Base def merge(base, associations) @registry.merge!(base => associations) end def similarly_associated(base, associations) @registry.select { |key, value| key.include?(base) && value == associations }.collect(&:first).flatten end end end end
Version data entries
23 entries across 23 versions & 1 rubygems