Sha256: bdd628781e51406a7a96cbaa188e5e415f1f32cbf0e4c1514141199d713f6c6b
Contents?: true
Size: 345 Bytes
Versions: 63
Compression:
Stored size: 345 Bytes
Contents
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
63 entries across 63 versions & 2 rubygems