-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
defmodule Drab.Endpoint do | ||
@moduledoc ~S""" | ||
Depreciated. To enable Drab, `use Drab.Socket` in your `UserSocket` module. | ||
""" | ||
# defmodule Drab.Endpoint do | ||
# @moduledoc ~S""" | ||
# Depreciated. To enable Drab, `use Drab.Socket` in your `UserSocket` module. | ||
# """ | ||
|
||
defmacro __using__(_options) do | ||
IO.warn """ | ||
Injecting Drab into Endpoint is depreciated, Drab.Endpoint will be removed. | ||
To enable Drab, `use Drab.Socket` in your `UserSocket` module. | ||
""", Macro.Env.stacktrace(__ENV__) | ||
quote do | ||
# socket Drab.config.socket, Drab.Socket | ||
end | ||
end | ||
# defmacro __using__(_options) do | ||
# IO.warn """ | ||
# Injecting Drab into Endpoint is depreciated, Drab.Endpoint will be removed. | ||
# To enable Drab, `use Drab.Socket` in your `UserSocket` module. | ||
# """, Macro.Env.stacktrace(__ENV__) | ||
# quote do | ||
# # socket Drab.config.socket, Drab.Socket | ||
# end | ||
# end | ||
|
||
end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters