Skip to content

Temporary fix for using polymorphic_embed and ex_machina together.

Notifications You must be signed in to change notification settings

bitfreighter/ex_machina_polymorphic_embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExMachinaPolymorphicEmbed

This is a silly (hopefully temporary) fix for the ongoing incompatibility between ExMachina and PolymorphicEmbed libraries. Stolen from this pull request: mathieuprog/polymorphic_embed#26

Installation

def deps do
  [
    {:ex_machina_polymorphic_embed, "~> 0.1.1", only: :test}
  ]
end

Usage

In your factory replace use ExMachina.Ecto, YourApp.Repo with ExMachinaPolymorphicEmbed.Ecto, repo: YourApp.Repo

About

Temporary fix for using polymorphic_embed and ex_machina together.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages