diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-07 08:35:48 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-07 08:35:48 -0800 |
commit | e7cdaedb6bc7d452142b9b8c42942d659efcd11a (patch) | |
tree | 5829a046469b524c0839eb18ed3329a7edca1e28 /test/support | |
parent | 8aa5d7a393e0bbef8cd3ae9ecf64c2358b802b5f (diff) | |
download | rails-e7cdaedb6bc7d452142b9b8c42942d659efcd11a.tar.gz rails-e7cdaedb6bc7d452142b9b8c42942d659efcd11a.tar.bz2 rails-e7cdaedb6bc7d452142b9b8c42942d659efcd11a.zip |
cleaning up math operations on attributes
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/fake_record.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb index a0fa79d519..babf5fa25b 100644 --- a/test/support/fake_record.rb +++ b/test/support/fake_record.rb @@ -20,10 +20,12 @@ module FakeRecord ] } @columns_hash = { - 'users' => Hash[@columns['users'].map { |x| [x.name, x] }] + 'users' => Hash[@columns['users'].map { |x| [x.name, x] }], + 'products' => Hash[@columns['products'].map { |x| [x.name, x] }] } @primary_keys = { - 'users' => 'id' + 'users' => 'id', + 'products' => 'id' } end |