mirror of
https://github.com/ash-project/ash_archival.git
synced 2024-09-20 05:22:56 +12:00
A small extension for setting up resources to be archived instead of destroyed.
9949e6860a
improvement!: don't use `base_filter` anymore, allowing for more flexible design improvement: add `exclude_read_actions` to exclude some actions from filtering archived items improvement: add `exclude_destroy_actions` to exclude some actions from being intercepted Please enter the commit message for your changes. Lines starting |
||
---|---|---|
.github | ||
.vscode | ||
config | ||
documentation | ||
lib | ||
test | ||
.check.exs | ||
.credo.exs | ||
.formatter.exs | ||
.gitignore | ||
.tool-versions | ||
CHANGELOG.md | ||
LICENSE | ||
mix.exs | ||
mix.lock | ||
README.md |
Ash Archival
A small but useful resource extension for Ash Framework, which configures resources to be archived instead of destroyed.
Installation
The package can be installed by adding ash_archival
to your list of dependencies in mix.exs
:
def deps do
[
{:ash_archival, "~> 0.1"}
]
end
Using the archive extension
On your ash resource add AshArchival.Resource
to your extensions. For more details see the docs at https://ash-hq.org.
use Ash.Resource,
extensions: [AshArchival.Resource]