A project that integrates Phoenix with Ecto, implementing all relevant protocols.
You can use phoenix_ecto
in your projects in two steps:
-
Add it to your
mix.exs
dependencies:def deps do [{:phoenix_ecto, "~> 0.3"}] end
-
List it as your application dependency:
def application do [applications: [:logger, :phoenix_ecto]] end
This project:
- Implements the
Phoenix.HTML.FormData
protocol forEcto.Changeset
- Implements the
Phoenix.HTML.Safe
protocol forDecimal
,Ecto.Date
,Ecto.Time
andEcto.DateTime
- Implements the
Poison.Encoder
protocol forEcto.Changeset
(it renders its errors as JSON),Decimal
,Ecto.Date
,Ecto.Time
andEcto.DateTime
- Implements the
Plug.Exception
protocol for the relevant Ecto exceptions
Same license as Phoenix.