Closed dblock closed 6 years ago
1 Warning | |
---|---|
:warning: | Unless you’re refactoring existing code, please update CHANGELOG.md. |
Here's an example of a CHANGELOG.md entry:
* [#216](https://github.com/mongoid/mongoid-history/pull/216): Small refactor of relations - [@dblock](https://github.com/dblock).
Generated by :no_entry_sign: danger
Taking some of the working parts out of #215.
Extracts
increment_current_version
.Simplifies fetching of the relation's class or type of relationship by always looking at
reflect_on_association
and memoizing the result.Collapses
embeds_many_class
andembeds_one_class
intorelation_class_of
.Renames methods from embedded to related so we can continue extending into many-to-many and such.