Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created March 29, 2016 14:17
Show Gist options
  • Save guilleiguaran/a8b27fb8ab06ab49ae62 to your computer and use it in GitHub Desktop.
Save guilleiguaran/a8b27fb8ab06ab49ae62 to your computer and use it in GitHub Desktop.
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