chore: ensure calc module compiled (shouldn't have to do this)

This commit is contained in:
Zach Daniel 2022-09-28 18:00:51 -04:00
parent fec01e32fa
commit 6c94e5e578

View file

@ -39,6 +39,8 @@ defmodule Ash.Actions.Sort do
calc ->
{module, opts} = calc.calculation
Code.ensure_compiled!(module)
if function_exported?(module, :expression, 2) do
if Ash.DataLayer.data_layer_can?(resource, :expression_calculation_sort) do
calculation_sort(