Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
Merge f2af9db into 314e824
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Jun 3, 2017
2 parents 314e824 + f2af9db commit b7a93a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/quantum/scheduler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ defmodule Quantum.Scheduler do
@opaque t :: module

defmacro __using__(opts) do
quote bind_quoted: [opts: opts] do
quote bind_quoted: [opts: opts, moduledoc: @moduledoc] do
@moduledoc moduledoc
|> String.replace(~r/MyApp\.Scheduler/, Enum.join(Module.split(__MODULE__), "."))
|> String.replace(~r/:my_app/, Atom.to_string(Keyword.fetch!(opts, :otp_app)))

@behaviour Quantum.Scheduler

@otp_app Keyword.fetch!(opts, :otp_app)
Expand Down

0 comments on commit b7a93a0

Please sign in to comment.