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

Version Path
thaold-bullet-2.0.2 lib/bullet/registry/association.rb
bullet-2.0.1 lib/bullet/registry/association.rb
bullet-2.0.0 lib/bullet/registry/association.rb
bullet-2.0.0.rc3 lib/bullet/registry/association.rb
bullet-2.0.0.rc2 lib/bullet/registry/association.rb
bullet-2.0.0.rc1 lib/bullet/registry/association.rb
bullet-2.0.0.beta.4 lib/bullet/registry/association.rb
bullet-2.0.0.beta.3 lib/bullet/registry/association.rb