Skip to content

Commit

Permalink
fix: include presence of authorizers in embedded resource optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 16, 2024
1 parent e5fb89f commit 00891f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ash/embeddable_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ defmodule Ash.EmbeddableType do
Enum.empty?(Ash.Resource.Info.changes(__MODULE__, action.type)) &&
Enum.empty?(Ash.Resource.Info.validations(__MODULE__, action.type)) &&
Enum.empty?(Ash.Resource.Info.notifiers(__MODULE__)) &&
Enum.empty?(Ash.Resource.Info.authorizers(__MODULE__)) &&
Enum.empty?(Ash.Resource.Info.relationships(__MODULE__)) do
has_structs? = not Enum.empty?(structs)

Expand Down

0 comments on commit 00891f8

Please sign in to comment.