resync from rails_port 11795:12304
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / lib / composite_primary_keys / fixtures.rb
1 class Fixture #:nodoc:
2   def [](key)
3     if key.is_a? Array
4       return key.map { |a_key| self[a_key.to_s] }.to_composite_ids.to_s
5     end
6     @fixture[key]
7   end
8 end