diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-21 14:29:30 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-21 14:29:30 +0530 |
commit | e2dad56caae7ed7697f8d9b4e9d6a62faa308046 (patch) | |
tree | 99b569cb4a2c2795bd5952635dda50996fff68d6 | |
parent | 83592292768de6c093eea06289470154761f3825 (diff) | |
download | rails-e2dad56caae7ed7697f8d9b4e9d6a62faa308046.tar.gz rails-e2dad56caae7ed7697f8d9b4e9d6a62faa308046.tar.bz2 rails-e2dad56caae7ed7697f8d9b4e9d6a62faa308046.zip |
Cache adapter_name in Sql::Engine
-rw-r--r-- | lib/arel/engines/sql/engine.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/engine.rb b/lib/arel/engines/sql/engine.rb index 7d2926040c..eb9dd85602 100644 --- a/lib/arel/engines/sql/engine.rb +++ b/lib/arel/engines/sql/engine.rb @@ -9,6 +9,10 @@ module Arel @ar.connection end + def adapter_name + @adapter_name ||= connection.adapter_name + end + def method_missing(method, *args, &block) @ar.connection.send(method, *args, &block) end |