Skip to content

Instantly share code, notes, and snippets.

@crbelaus
Last active June 29, 2019 12:53
Show Gist options
  • Select an option

  • Save crbelaus/3ec3630f99815f86b2a8c2e11aa44b90 to your computer and use it in GitHub Desktop.

Select an option

Save crbelaus/3ec3630f99815f86b2a8c2e11aa44b90 to your computer and use it in GitHub Desktop.
Shows an example of Trans 1.0 runtinme errors
# Trans 1.0 did not perform safety checks when building queries.
# Adding conditions on a non-existing field would result un runtime errors.
iex> Article
...> |> Article.with_translation(:es, :fake, "this field does not exist")
...> |> Repo.all
** (ArgumentError) The field `fake` is not declared as translatable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment