diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 14:46:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 14:46:40 -0700 |
commit | f95f0918d745856080c06b5e3ae5c323b2de43d2 (patch) | |
tree | 92b3f9669abc268549132a56c59c455d1be4d1d1 /lib/arel | |
parent | e460aa96ae9bd5f1a24d798b2d22984a54810c70 (diff) | |
download | rails-f95f0918d745856080c06b5e3ae5c323b2de43d2.tar.gz rails-f95f0918d745856080c06b5e3ae5c323b2de43d2.tar.bz2 rails-f95f0918d745856080c06b5e3ae5c323b2de43d2.zip |
Revert "Table#[] returns nil when table does not exist"
This reverts commit e460aa96ae9bd5f1a24d798b2d22984a54810c70.
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/table.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb index c381613515..06bbe7b99e 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -88,8 +88,6 @@ module Arel end def [] name - return nil unless @engine.connection.table_exists?(@name) - name = name.to_sym columns.find { |column| column.name == name } end |