From 009b55f2a928ca4df10bc040859a036171da2e6f Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Sat, 15 Apr 2017 14:25:51 -0300 Subject: [PATCH] Add custom I18n example on doc Maybe it could be part of the template generation. This pull request avoid the user search into the code to know the I18n key. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6f7f5be2..ba0d7351 100644 --- a/README.md +++ b/README.md @@ -499,6 +499,15 @@ end Note that you *will eventually have data corruption* if you disable advisory locks, write to your database with multiple threads, and don't provide an alternative mutex. +## I18n + +You can customize error messages using [I18n](http://guides.rubyonrails.org/i18n.html): + +```yaml +en-US: + closure_tree: + loop_error: Your descendant cannot be your parent! +``` ## FAQ