How can add an action in Mixin?
Hi sorry, this is my Mixin to create version for my records, how can add an action inside it?
The action i want to add
Thank you in advance
The action i want to add
Thank you in advance
defmodule MishkaCms.Runtime.Resources.Mixins.PagePaperTrailMixin do
def postgres do
quote do
postgres do
table "page_versions"
repo MishkaCms.Repo
references do
reference :version_source, on_delete: :delete
end
end
end
end
endread :get_any do
get? true
multitenancy :bypass
end