README.md in dbview_cti-0.1.4 vs README.md in dbview_cti-0.1.5
- old
+ new
@@ -173,11 +173,11 @@
end
```
## Associations
-Associations (`has_many`, `has_one`, etc.) work and are inherited as you would expect. There are two caveats:
+Associations (`has_many`, `has_one`, etc.) work and are inherited as you would expect. There are three caveats:
* In the base class, you have to call `cti_base_class` before defining any associations:
```ruby
class Vehicle < ActiveRecord::Base
@@ -196,9 +196,11 @@
cti_derived_class
has_and_belongs_to_many :astronauts, :join_table => 'astronauts_space_ships'
end
```
+
+* You have to make sure that the association is defined in both classes, e.g. if you have `belongs_to :car` in a class called Part then Car should also define the association with `has_many :parts` (or `has_one :part`).
## API
### Models