Skip to content

Commit

Permalink
Merge pull request #44 from gordonbisnor/fomat-key-typo
Browse files Browse the repository at this point in the history
fomat_key typo in ecto_error_serializer
  • Loading branch information
alanpeabody committed Dec 5, 2015
2 parents ca0c83d + 5104af7 commit 8b7c534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ja_serializer/ecto_error_serializer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule JaSerializer.EctoErrorSerializer do
defp pointer_for(field) do
case Regex.run(~r/(.*)_id$/, to_string(field)) do
nil -> "/data/attributes/#{Utils.format_key(field)}"
[_, rel] -> "/data/relationships/#{Utils.fomat_key(rel)}"
[_, rel] -> "/data/relationships/#{Utils.format_key(rel)}"
end
end
end

0 comments on commit 8b7c534

Please sign in to comment.