diff options
-rw-r--r-- | lib/arel/engines/sql/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/engine.rb b/lib/arel/engines/sql/engine.rb index 7e841d68bb..ab9dcb48b5 100644 --- a/lib/arel/engines/sql/engine.rb +++ b/lib/arel/engines/sql/engine.rb @@ -6,7 +6,7 @@ module Arel end def connection - @ar ? @ar.connection : nil + @ar && @ar.connection end def adapter_name |