Rendering AshPaperTrails
Solution
In my Member ressource, I have:
Note:
- in :actor the person who modify the resource is stored
- :store_action_name is very usefull to know which action has been called
The status of my member is an Enum:
Now, when I load my member data in my liveview, I do:
and after I am doing the processing of the version like:
Note:
- in :actor the person who modify the resource is stored
- :store_action_name is very usefull to know which action has been called
The status of my member is an Enum:
Now, when I load my member data in my liveview, I do:
and after I am doing the processing of the version like:
