Skip to content

v0.6.0

Compare
Choose a tag to compare
@Alexander-Senko Alexander-Senko released this 08 Nov 13:39
· 18 commits to main since this release
a148ed1

Changed

  • Destroy orphaned relationships of an object on destroy.
  • Symbolize configurable names used for associations, methods, etc.
  • Raise ArgumentError for unknown names passed to the API.

Added

  • Relationship[] to filter relationships by related objects/classes.
  • Role[] accepts Hash-like parameters to filter roles by relationships.
  • Methods for related records:
    • related? to check for related objects,
    • related to fetch them,
    • and the basic relationships.
  • Recursive methods for related records:
    • flat ancestors & descendants with distance,
    • based on recursive association scope.
  • roleless scope for related records without a role.
  • A dedicated association for roleless children.

Fixed

  • Faulty scopes in role-based relationship associations.
  • Naming for namespaced models, e.g., in Rails Engines.

Full Changelog: v0.5.0...v0.6.0