-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude :count option on retrieve link #480
Conversation
a068ef2
to
dcda31c
Compare
Bebased to current master. |
Thanks @Tietew. This patch looks good to me :) |
It seems that some rails validation messages are broken after applying this patch. Here is some model example with numericality validation:
Then, i console:
This is due to a count parameter being removed in chain of calls. File lib/i18n/backend/base.rb, line 146 of this commit. Another example, with manual invocation. Variable "key" will be set to non-existing key in yaml files, but defaults contains symbol with existing key in yaml files. If default is not provided, standard error is returned. If default is provided, we get exception.
I have a working patch to solve this issue, let me know if you are interested. Regards, |
Hey @CrAsH1101, I'd love to see a patch to fix this issue. Please submit one :) |
Using both
count:
option and linked lookup in locale data causes unexpectedI18n::InvalidPluralizationData
.Locale YAML:
Code:
Expected result:
Actual result: