Skip to content

Conversation

carlos-mora
Copy link

Added the condition to adapt both method to be coherent with their counterparts get_many_by() and get_all().
I'm not sure if the count_all solution is the best, because it could be affected by previous where calls, but it is my best approach.

count_by and count_all() didn't take into account the soft-delete status in record counting. 
get_many_by() and get_all() does, so it looks better to follow the behavoir in the analogous method.
Not sure about this, ar's count_all operates independently of ar's status, the only way i found is to count_all_results().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant