aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Looby <robertjlooby@gmail.com>2015-05-03 11:52:45 -0500
committerRob Looby <robertjlooby@gmail.com>2015-05-03 11:52:45 -0500
commit2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586 (patch)
treedb4866f0657ef99693d74ebc5f38afd1d423e538
parent78c4e30c6df04be7148b36916455792b727cd55b (diff)
downloadrails-2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586.tar.gz
rails-2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586.tar.bz2
rails-2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586.zip
add note about habtm relations with scopes
-rw-r--r--guides/source/upgrading_ruby_on_rails.md2
1 files changed, 2 insertions, 0 deletions
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.