Skip to content

Commit e0493bc

Browse files
authored
Merge pull request #1361 from zachdaniel/main
fix: use `Code.ensure_compiled!` at compile time
2 parents 2c0a347 + 7495d88 commit e0493bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/absinthe/schema.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ defmodule Absinthe.Schema do
365365
def apply_modifiers(pipeline, schema, opts \\ []) do
366366
Enum.reduce(schema.__absinthe_pipeline_modifiers__(), pipeline, fn
367367
{module, function}, pipeline ->
368-
Code.ensure_loaded!(module)
368+
Code.ensure_compiled!(module)
369369

370370
cond do
371371
function_exported?(module, function, 1) ->
@@ -379,7 +379,7 @@ defmodule Absinthe.Schema do
379379
end
380380

381381
module, pipeline ->
382-
Code.ensure_loaded!(module)
382+
Code.ensure_compiled!(module)
383383

384384
cond do
385385
function_exported?(module, :pipeline, 1) ->

0 commit comments

Comments
 (0)