v0.6.0
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[]
acceptsHash
-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.
- flat
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