diff options
Diffstat (limited to 'lib/arel/engines')
-rw-r--r-- | lib/arel/engines/sql/relations/table.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/arel/engines/sql/relations/table.rb b/lib/arel/engines/sql/relations/table.rb index 28c56a6bb0..65a0f91e8c 100644 --- a/lib/arel/engines/sql/relations/table.rb +++ b/lib/arel/engines/sql/relations/table.rb @@ -52,11 +52,7 @@ module Arel end def table_exists? - if @table_exists - true - else - @table_exists = @@tables.include?(name) || engine.connection.table_exists?(name) - end + @table_exists ||= @@tables.include?(name) || engine.connection.table_exists?(name) end def attributes |