v0.6.0
Changed
- Destroy orphaned relationships of an object on destroy.
- Symbolize configurable names used for associations, methods, etc.
- Raise
ArgumentErrorfor unknown names passed to the API.
Added
Relationship[]to filter relationships by related objects/classes.Role[]acceptsHash-like parameters to filter roles by relationships.- Methods for related records:
related?to check for related objects,relatedto fetch them,- and the basic
relationships.
- Recursive methods for related records:
- flat
ancestors&descendantswith distance, - based on
recursiveassociation scope.
- flat
rolelessscope 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