Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace incorrect function_exported?-checks in bulk-actions, add has-defs for change modules #1330

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

Torkan
Copy link
Contributor

@Torkan Torkan commented Jul 22, 2024

Add has_batch_change?, has_before_batch? & has_after_patch? before_compile defs in change-modules, and use them instead of function_exported?-checks in the bulk-action modules.

This also fixes some incorrect function_exported?(module, :after_batch, 4)-checks in the bulk modules, where the correct arity would be 3, which resulted in the change-function being called instead of batch_change.

@zachdaniel zachdaniel merged commit c2ac47e into ash-project:main Jul 22, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants