Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 723 Bytes

File metadata and controls

25 lines (17 loc) · 723 Bytes

EctoPolymorphic

ecto_polymorphic extends ParameterizedType from ecto.

In nutshell, you can create complex embeds using the power of Ecto.

Inspired by https://github.com/mathieuprog/polymorphic_embed.

Installation

If available in Hex, the package can be installed by adding ecto_polymorphic to your list of dependencies in mix.exs:

def deps do
  [
    {:ecto_polymorphic, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ecto_polymorphic.