diff --git a/lib/flame_on/component/capture_schema.ex b/lib/flame_on/component/capture_schema.ex index fbcba4e..0a2dc0d 100644 --- a/lib/flame_on/component/capture_schema.ex +++ b/lib/flame_on/component/capture_schema.ex @@ -88,6 +88,15 @@ defmodule FlameOn.Component.CaptureSchema do :rpc.call(node, Code, :ensure_loaded?, [module]) end + defp rpc_function_exported?(module, function, arity, node) when is_binary(module) and is_binary(function) do + {module, function} = {rpc_to_existing_atom(module, node), rpc_to_existing_atom(function, node)} + if is_nil(module) || !rpc_code_ensure_loaded?(module, node) || is_nil(function) do + false + else + rpc_function_exported?(module, function, arity, node) + end + end + defp rpc_function_exported?(module, function, arity, node) do :rpc.call(node, Kernel, :function_exported?, [module, function, arity]) end diff --git a/lib/flame_on/gettext.ex b/lib/flame_on/gettext.ex index 7cfed43..3bcec57 100644 --- a/lib/flame_on/gettext.ex +++ b/lib/flame_on/gettext.ex @@ -20,5 +20,5 @@ defmodule FlameOn.Gettext do See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. """ - use Gettext, otp_app: :flame_on + use Gettext.Backend, otp_app: :flame_on end