]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/lib/composite_primary_keys/fixtures.rb
Add the open_id_authentication plugin
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / 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