Skip to content

Commit c27057c

Browse files
authored
Merge pull request #265 from wbotelhos/patch-1
Add custom I18n example on doc
2 parents a684524 + 009b55f commit c27057c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,15 @@ end
499499
Note that you *will eventually have data corruption* if you disable advisory locks, write to your
500500
database with multiple threads, and don't provide an alternative mutex.
501501

502+
## I18n
503+
504+
You can customize error messages using [I18n](http://guides.rubyonrails.org/i18n.html):
505+
506+
```yaml
507+
en-US:
508+
closure_tree:
509+
loop_error: Your descendant cannot be your parent!
510+
```
502511

503512
## FAQ
504513

0 commit comments

Comments
 (0)