Add creating and basic editing of translation
This commit is contained in:
@ -35,7 +35,10 @@ defmodule Outlook.Translations do
|
||||
** (Ecto.NoResultsError)
|
||||
|
||||
"""
|
||||
def get_translation!(id), do: Repo.get!(Translation, id)
|
||||
def get_translation!(id) do
|
||||
Repo.get!(Translation, id)
|
||||
|> Repo.preload([:article])
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a translation.
|
||||
|
||||
Reference in New Issue
Block a user