From 2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586 Mon Sep 17 00:00:00 2001 From: Rob Looby Date: Sun, 3 May 2015 11:52:45 -0500 Subject: add note about habtm relations with scopes --- guides/source/upgrading_ruby_on_rails.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source') diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index be7d2a3635..49834fa8a2 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -895,6 +895,8 @@ CatalogProduct < ActiveRecord::Base end ``` +* Note that the the prefix takes scopes into account as well, so relations between `Catalog::Category` and `Catalog::Product` or `Catalog::Category` and `CatalogProduct` need to be updated similarly. + ### Active Resource Rails 4.0 extracted Active Resource to its own gem. If you still need the feature you can add the [Active Resource gem](https://github.com/rails/activeresource) in your Gemfile. -- cgit v1.2.3