1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

add note about habtm relations with scopes

This commit is contained in:
Rob Looby 2015-05-03 11:52:45 -05:00
parent 78c4e30c6d
commit 2ffeee3d2a

View file

@ -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.