Closed fuelen closed 5 years ago
I would really like to use this kind of API to keep namespaces smaller.
defmodule MyApp.Accounts.Status do import EctoEnum defenum [:active, :pending, :blocked] def inactive_group do [:pending, :blocked] end end
I just added support for use in #77. Does that address your need?
use
Yes, many thanks!
I would really like to use this kind of API to keep namespaces smaller.