diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-14 22:22:34 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-14 22:22:45 -0700 |
commit | 425925b1c6433309fcbaa7242df39394b70280a6 (patch) | |
tree | 13b40a0a5e63d90a911955c374e1cbc433873f9a /test | |
parent | 6c2e2ac6c77051c4e1d3e70f197f85df53935e76 (diff) | |
download | rails-425925b1c6433309fcbaa7242df39394b70280a6.tar.gz rails-425925b1c6433309fcbaa7242df39394b70280a6.tar.bz2 rails-425925b1c6433309fcbaa7242df39394b70280a6.zip |
call the columns hash method
Diffstat (limited to 'test')
-rw-r--r-- | test/support/fake_record.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb index 79182f86bd..58883e43cd 100644 --- a/test/support/fake_record.rb +++ b/test/support/fake_record.rb @@ -3,7 +3,7 @@ module FakeRecord end class Connection - attr_reader :tables, :columns_hash + attr_reader :tables attr_accessor :visitor def initialize(visitor = nil) @@ -31,6 +31,10 @@ module FakeRecord @visitor = visitor end + def columns_hash table_name + @columns_hash[table_name] + end + def primary_key name @primary_keys[name.to_s] end |