Skip to content

Commit

Permalink
Namespace Deprecation Module
Browse files Browse the repository at this point in the history
  • Loading branch information
jherdman committed Dec 24, 2018
1 parent 86f75ef commit c214ff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/jsonapi/deprecation.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Deprecation do
defmodule JSONAPI.Deprecation do
@moduledoc """
Generate warnings in places where we want to deprecate functions or struct parameters
"""
Expand Down
3 changes: 1 addition & 2 deletions lib/jsonapi/plugs/query_parser.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
defmodule JSONAPI.QueryParser do
@behaviour Plug
alias JSONAPI.Config
alias JSONAPI.Page
alias JSONAPI.{Config, Deprecation, Page}
alias JSONAPI.Exceptions.InvalidQuery
alias Plug.Conn
alias JSONAPI.Utils.Underscore
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonapi/view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ defmodule JSONAPI.View do
def attributes(data, conn) do
hidden =
if Enum.member?(__MODULE__.__info__(:functions), {:hidden, 0}) do
Deprecation.warn(:hidden)
JSONAPI.Deprecation.warn(:hidden)
this = __MODULE__
this.hidden()
else
Expand Down

0 comments on commit c214ff0

Please sign in to comment.