How to get all records in inherited_resources collection?
-
30-07-2022 - |
Frage
How to list all records in a single page without pagination. Now I didn't use limit to fetch selected records, but it returns only 20 records in a page.
How to remove limit from my query to retrieve all records?
UPDATE
def collection
@users ||= apply_scopes(User).where(status: 'ACTIVE').order(sort_column + " " + sort_direction).includes(:replies)
end
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow