Sha256: 8c293657e165accb4c7d238b9fdb5774e8e46d8c31f4f9c53bb53bd0d85888cf

Contents?: true

Size: 168 Bytes

Versions: 16

Compression:

Stored size: 168 Bytes

Contents

class Fixture #:nodoc:
  def [](key)
    if key.is_a? Array
      return key.map { |a_key| self[a_key.to_s] }.to_composite_ids.to_s
    end
    @fixture[key]
  end
end

Version data entries

16 entries across 16 versions & 5 rubygems

Version Path
jwulff-composite_primary_keys-1.0.9 lib/composite_primary_keys/fixtures.rb
kovyrin-composite_primary_keys-2.3.2 lib/composite_primary_keys/fixtures.rb
mingusbabcock-composite_primary_keys-2.2.2.1 lib/composite_primary_keys/fixtures.rb
tyler-composite_primary_keys-1.1.0 lib/composite_primary_keys/fixtures.rb
tyler-composite_primary_keys-1.1.1 lib/composite_primary_keys/fixtures.rb
tyler-composite_primary_keys-1.1.2 lib/composite_primary_keys/fixtures.rb
tyler-composite_primary_keys-1.1.3 lib/composite_primary_keys/fixtures.rb
tyler-composite_primary_keys-1.1.4 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.3.5.1 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.3.5 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.3.2 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-1.0.10 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.2.2 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-1.1.0 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.2.1 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-2.2.0 lib/composite_primary_keys/fixtures.rb