Skip to content

Commit

Permalink
Add docs to Ecto.Enum.mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 16, 2023
1 parent 65efc99 commit 2f97643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ecto/enum.ex
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ defmodule Ecto.Enum do
|> Keyword.values()
end

@doc "Returns the mappings between values and dumped values"
@spec mappings(map, atom) :: Keyword.t()
def mappings(types, field) when is_map(types) do
case types do
Expand Down

0 comments on commit 2f97643

Please sign in to comment.