Packages

Elixir library for working with Money safer, easier, and fun, is an interpretation of the Fowler's Money pattern in fun.prog. An enhanced version of the original https://github.com/liuggio/money package

Current section

Files

Jump to
money_man lib money phoenix_html_safe.ex
Raw

lib/money/phoenix_html_safe.ex

if Code.ensure_compiled?(Phoenix.HTML.Safe) do
defimpl Phoenix.HTML.Safe, for: Money do
def to_iodata(money), do: Phoenix.HTML.Safe.to_iodata(to_string(money))
end
end