Closed jmay closed 9 years ago
Error appears in sequel
4.15.0, commit that causes this error:
The only fallout from this change is that reciprocal_type for
many_to_one associations now needs access to the associated class
if not cached, so when caching is disabled, if there isn't a
single associated class (such as when using manually creating a
custom polymorphic association), you should manually set the
:reciprocal_type option.
In your README example, if you try
Asset.first.attachable
then you will getuninitialized constant Attachable
. For some reason it isn't realizing that it should be fetching aNote
instead of anAttachable
.Works fine if you start with the
Note
and try to do a round-trip, i.e.note.assets.first.attachable
.