Summary
Functions
Registers the currencies declared in the :custom_currencies configuration
into the running currency store.
Callback implementation for Application.start/2.
Functions
@spec register_custom_currencies() :: :ok
Registers the currencies declared in the :custom_currencies configuration
into the running currency store.
This is an escape hatch, not the normal flow. Configured currencies are
registered automatically by Money.Currency.Store when it starts, and again
after any supervisor restart, so most applications never call this function.
Use it only to re-apply the configuration to an already-running store after
changing :custom_currencies at runtime. Currencies that are already
registered are left unchanged, and any entry that fails to register is logged
and skipped rather than raised.
Returns
:okin all cases. Per-currency failures are emitted as log warnings, not returned.
Examples
iex> Money.Application.register_custom_currencies()
:ok
Callback implementation for Application.start/2.