You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in question is
model_count = collection.total_pages > 1 ? 5 : collection.size
I can not catch the idea of setting model_count to five for multypage case, but it will not work properly for the last page in non-English languages, in particular, Russian.
The text was updated successfully, but these errors were encountered:
I could if you explain the reason of setting model_count to 5.
For example, you set the page size to 30 and got 21 records. You will end up with the same form of the noun as for one record. But the context you put the obtained 'model' into does not fit the form of the noun.
I think I understand what are you saying. The "5" thing was a hack that I need to get rid of. Thanks for reporting; I will get to this when I'm making the next release.
The code in question is
model_count = collection.total_pages > 1 ? 5 : collection.size
I can not catch the idea of setting model_count to five for multypage case, but it will not work properly for the last page in non-English languages, in particular, Russian.
The text was updated successfully, but these errors were encountered: