Skip to content

Commit

Permalink
chore: add Ash.uuid/0
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 3, 2020
1 parent 78cde9c commit c414d25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ash.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ defmodule Ash do
|> Enum.any?(&(&1 == behaviour))
end

def uuid do
Ecto.UUID.generate()
end

@doc "Returns all extensions of a resource or api"
@spec extensions(resource() | api()) :: [module]
def extensions(resource) do
Expand Down

0 comments on commit c414d25

Please sign in to comment.