#
View Source FlameOn.Component.CaptureSchema (flame_on v0.7.0)

# Link to this section Summary

## Functions

changeset(node, attrs \\ nil)
maybe_prepend_elixir(module_str)

Since we support both Elixir and Erlang modules, and are taking a string argument, modules have to be converted to the Erlang notation before being passed to various checks and to :meck. This means an Elixir module like Phoenix.LiveView would have to be converted to the atom :"Elixir.Phoenix.LiveView", but cowboy_handler remains :cowboy_handler. If they already prepended `Elixir.` then we pass the module as is.

# Link to this section Functions

Link to this function

# changeset(node, attrs \\ nil)

View Source
Link to this function

# maybe_prepend_elixir(module_str)

View Source

Since we support both Elixir and Erlang modules, and are taking a string argument, modules have to be converted to the Erlang notation before being passed to various checks and to :meck. This means an Elixir module like Phoenix.LiveView would have to be converted to the atom :"Elixir.Phoenix.LiveView", but cowboy_handler remains :cowboy_handler. If they already prepended `Elixir.` then we pass the module as is.