Last active
June 29, 2019 12:54
-
-
Save crbelaus/7e7aef2ad6e3879a3dd19b6f3397a979 to your computer and use it in GitHub Desktop.
Shows an example of a module using Trans 1.0 and it's added functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Using tab to autocomplete shows the functions added by Trans | |
| # Those functions pollute the module interface and add database | |
| # and query concerns to the schema module | |
| iex(5)> Article. | |
| changeset/1 changeset/2 with_translation/4 | |
| with_translation/5 with_translations/2 with_translations/3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment