Skip to content

v0.11.0

Choose a tag to compare

@Alexander-Senko Alexander-Senko released this 08 May 20:39
· 18 commits to main since this release
97db4b7

Changed

  • Deprecated Relationship.seed! in favor of AdjustableSchema.relationship!.
  • Special naming rules for “actor-like” models: switched from <associat>ful form to check for related records’ presence back to a passive one (<associat>ed). Thus, it’s authored and edited now instead of authorful and editful.
  • Relationship.to/.of handle STI classes precisely instead of falling back to a base class.
  • Customized inspections for Relationship.

Added

  • referencing/referenced_by scopes to filter by related records.
  • #referencing!/#referenced_by! setters to add related records.
  • Short-cut methods for related records. For example, authors association provides the following extras:
    • .authored_by scope 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