From 992d87db02507363a4ad4ab40a3e4c4b32cf0408 Mon Sep 17 00:00:00 2001 From: Ben Moss Date: Sat, 9 Mar 2013 14:54:19 -0500 Subject: Deprecate #connection in favour of accessing it via the class This allows end-users to have a `connection` method on their models without clashing with ActiveRecord internals. --- activerecord/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 34eb646225..1796f4319f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,11 @@ ## Rails 4.0.0 (unreleased) ## +* `connection` is deprecated as an instance method. + This allows end-users to have a `connection` method on their models + without clashing with ActiveRecord internals. + + *Ben Moss* + * When copying migrations, preserve their magic comments and content encoding. *OZAWA Sakuro* -- cgit v1.2.3