Skip to content

Commit

Permalink
fix: missing rename on refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 1, 2021
1 parent 6fcff37 commit 48d8815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ash/filter/filter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2399,12 +2399,12 @@ defmodule Ash.Filter do

def get_function(key, resource) when is_atom(key) do
@builtin_functions[key] ||
Enum.find(Ash.DataLayer.data_layer_functions(context.resource), &(&1.name() == key))
Enum.find(Ash.DataLayer.data_layer_functions(resource), &(&1.name() == key))
end

def get_function(key, resource) when is_binary(key) do
Map.get(@string_builtin_functions, key) ||
Enum.find(Ash.DataLayer.data_layer_functions(context.resource), &(&1.name() == key))
Enum.find(Ash.DataLayer.data_layer_functions(resource), &(&1.name() == key))
end

def get_function(_, _), do: nil
Expand Down

0 comments on commit 48d8815

Please sign in to comment.