typed_dag
typed_dag copied to clipboard
Rails models as directed acyclic graphs (DAG) with typed edges
Hello there! I'm having trouble adding a new relation called 'start_follows' to OP. I've configured it to be equivalent to the 'follows' relation, but it's not working as expected. I...
Seem that Readme is misleading? It suggests to call `TypedDag::Configuration.set` for each model, but it seem to just override `TypedDag::Configuration#@instances`. Only passing an array to `TypedDag::Configuration.set` seem to work.
It is often to have "on_delete: :cascade" on association. In typed_dag, it would be on the edge AR. This is not mentioned in the README. I wonder whether it is...
This provides syntax highlighting. BeforeAfter ``` # Fetch a root message with a specific subject. message = Message.hierarchy_roots.where(subject: 'Some bogus') # ... ``` ```ruby # Fetch a root message with...
The inline code sections weren't being closed. BeforeAfter `[from.singularize]?[from.singularize]? `[to.singularize]?[to.singularize]?