A project that integrates Phoenix with Ecto, implementing all relevant protocols.
Usage
You can use phoenix_ecto in your projects in two steps:
Add it to your
mix.exsdependencies:def deps do[{:phoenix_ecto, "~> 0.3.0"}]endList it as your application dependency:
def application do[applications: [:logger, :phoenix_ecto]]end
Details
This project:
- Implements the
Phoenix.HTML.FormDataprotocol forEcto.Changeset - Implements the
Phoenix.HTML.Safeprotocol forDecimal,Ecto.Date,Ecto.TimeandEcto.DateTime - Implements the
Poison.Encoderprotocol forEcto.Changeset(it renders its errors as JSON),Decimal,Ecto.Date,Ecto.TimeandEcto.DateTime - Implements the
Plug.Exceptionprotocol for the relevant Ecto exceptions
License
Same license as Phoenix.