Proof of Concept using Ash
dj_goku:
I am wondering if some of the Main functions can be put in the resources. Learned a lot and got a lot of help from Zach!
zachdaniel:
Nice! Id say most of the functions in main.ex if not all of them could be implemented as actions, yes 🙂
zachdaniel:
Just had a brief skim though.
dj_goku:
Ok, thanks for the skim.
dblack:
Hey, nicely done!
If you’re interested in cleaning up some of the functions in main, you can implement all the create_* functions in the code_interface of each resource.
dj_goku:
Thank you! The thing that held me up from trying those actions was how I would pass things into those actions.
dj_goku:
I’ll have to look at the docs more on actions and code_interface.
dblack:
Yep, you can pass
args
into the code interface
dj_goku:
Thank you for that reference!