Files
nairobi/app/models/concerns
taitus abb81fccf4 Allow create translations without length validation
We have changed validate_translation method on Globalize concern.
The objective is skip length validations when locale is distinct to
default_locale.

First we force apply :length validations when locale is equal to
default_locale. After we reject :length from options and apply rest
of validation options only when we have more than 1 options.

Ej: options = { length: "maximum: 10" }
When reject :length option in this example, options is equal to a
empty hash and we cant execute validations.
2019-06-27 09:21:18 +02:00
..
2015-07-15 13:32:13 +02:00
2017-09-06 14:12:32 +02:00
2019-03-14 17:25:43 +01:00
2016-11-23 19:19:19 +01:00
2017-10-17 22:00:00 +02:00
2019-03-14 17:25:43 +01:00
2019-03-27 15:22:14 +01:00
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2019-04-17 17:40:56 +02:00
2019-03-14 17:25:43 +01:00
2018-05-22 15:02:35 +02:00