Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
defmodule MyMod do
defmodule Base do
def __using__(_) do
end
end
@mod Application.get_env(:my_app, :mod, MyMod.Base)
use @mod
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment