Sha256: 0174711d35b1bdb9355b8bb93efddb861956470a0833863de0c27da07a4c5c1d

Contents?: true

Size: 163 Bytes

Versions: 7

Compression:

Stored size: 163 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
    end
    @fixture[key]
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
composite_primary_keys-3.0.8 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.7 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.4 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.3 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.0.b3 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.0.b2 lib/composite_primary_keys/fixtures.rb
globe-composite_primary_keys-3.0.1 lib/composite_primary_keys/fixtures.rb