gjaldon / ecto_enum

Ecto extension to support enums in models
MIT License
563 stars 131 forks source link

Changes mix.exs to allow installation under a wider range of Ecto v2 versions #45

Closed theangryangel closed 7 years ago

theangryangel commented 7 years ago

Allows installation under >= 2.0.0 < 3.0.0.

szabolcsmaj commented 7 years ago

So when will this be merged?

theangryangel commented 7 years ago

If you need support now, you can use my branch directly in your mix.exs {:ecto_enum, git: "https://github.com/theangryangel/ecto_enum.git", branch: "feat/ecto-2.1"}. I promise I won't check in anything that breaks stuff 😄

szabolcsmaj commented 7 years ago

Thank you @theangryangel, I'll use your version till then :)

ryanwinchester commented 7 years ago

Have you guys got this working in the latest ecto/phoenix versions?

I get

** (ArgumentError) invalid or unknown type MyEnum for field :my_field
theangryangel commented 7 years ago

I have it working under Phoenix 1.3 with contexts. I can check the project mix lock file tomorrow, if you want specific version numbers

theangryangel commented 7 years ago

Looks like this was dealt with under another PR (#48)

I’ll keep my fork around just in case anyone’s using it.

gjaldon commented 6 years ago

Dep requirements are loosened in this commit https://github.com/gjaldon/ecto_enum/commit/4c936711b57fa49f863b0da3913567576eedeaac