diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index a52d7f4fb0..4eea7e5434 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -86,6 +86,13 @@ module ActiveRecord @last_verification = now end end + + # Provides access to the underlying database connection. Useful for + # when you need to call a proprietary method such as postgresql's lo_* + # methods + def raw_connection + @connection + end protected def log(sql, name) |