Sha256: 37ef68f6372e1fb825fe4d1fef7ada070716a632a51cf5422fc85e5b8b498b0f
Contents?: true
Size: 416 Bytes
Versions: 8
Compression:
Stored size: 416 Bytes
Contents
module Bullet module Registry class Association < Base def merge( base, associations ) @registry.merge!( { base => associations } ) unique( @registry[base] ) end def similarly_associated( base, associations ) @registry.select do |key, value| key.include?( base ) and value == associations end.collect( &:first ).flatten! end end end end
Version data entries
8 entries across 8 versions & 2 rubygems