aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-07-01 22:44:24 +0200
committerYves Senn <yves.senn@gmail.com>2013-07-01 22:44:24 +0200
commita444ea3478586befdc24b8152e15dc13884a3697 (patch)
tree14fef6e2dfa415e20955f1b53d44fa466129cca0 /activerecord/lib
parent53394420287009ac18ddb2831c981ea93e9491d0 (diff)
downloadrails-a444ea3478586befdc24b8152e15dc13884a3697.tar.gz
rails-a444ea3478586befdc24b8152e15dc13884a3697.tar.bz2
rails-a444ea3478586befdc24b8152e15dc13884a3697.zip
remove deprecated `ActiveRecord::Base#connection` method.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/core.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index ad2f9430a3..f306243552 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -337,14 +337,6 @@ module ActiveRecord
@readonly = true
end
- # Returns the connection currently associated with the class. This can
- # also be used to "borrow" the connection to do database work that isn't
- # easily done without going straight to SQL.
- def connection
- ActiveSupport::Deprecation.warn("#connection is deprecated in favour of accessing it via the class")
- self.class.connection
- end
-
def connection_handler
self.class.connection_handler
end