Sha256: 88d7c153f30294060b1e92d51f6d480a5b5844eb217c2e2dfd32bdc40fff61ec

Contents?: true

Size: 158 Bytes

Versions: 3

Compression:

Stored size: 158 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.1 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.1.0 lib/composite_primary_keys/fixtures.rb
composite_primary_keys-3.0.9 lib/composite_primary_keys/fixtures.rb