Ash FrameworkAF
Ash Framework7mo ago
14 replies
Sienhopist

How to call actions on an embedded resource with code interface?

I've started working on my custom authentication in my app and the first step is to make a resource representing a logged in user. This resource is embedded cause I plan to only use it as an actor. I won't save it anywhere for now.

So as usual, I made some actions and a code interface for them, but I can't call them from IEx.
So how do I call them?

And while we're at it, how do I call a generic action normally outside a code interface?
Solution
  code_interface do
    domain YOur.Domain
    define :create
    define :from_token
  end
Was this page helpful?