Repository navigation
v0.11.0
Changed
- Deprecated
Relationship.seed!in favor ofAdjustableSchema.relationship!. - Special naming rules for “actor-like” models: switched from
<associat>fulform to check for related records’ presence back to a passive one (<associat>ed). Thus, it’sauthoredandeditednow instead ofauthorfulandeditful. Relationship.to/.ofhandle STI classes precisely instead of falling back to a base class.- Customized inspections for
Relationship.
Added
referencing/referenced_byscopes to filter by related records.#referencing!/#referenced_by!setters to add related records.- Short-cut methods for related records. For example,
authorsassociation provides the following extras:.authored_byscope to filter records by authors,#authored_by?— to check if the record is authored by provided ones,#authored_by!— to add an author.
Full Changelog: v0.10.0...v0.11.0