Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #398 from rubyforgood/395/show-all-children-and-fa…
Browse files Browse the repository at this point in the history
…mily-results-instead-of-pagination

Prevent hiding children, family, and family request list results due to pagination
  • Loading branch information
edwinthinks committed Aug 24, 2020
2 parents f22fca7 + 66288ad commit cb94693
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controllers/children_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def index
.order(sort_column + ' ' + sort_direction),
params[:filterrific]
) || return
@children = @filterrific.find.page(params[:page])

@children = @filterrific.find

respond_to do |format|
format.js
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/families_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def index
.order(sort_column + ' ' + sort_direction),
params[:filterrific]
) || return
@families = @filterrific.find.page(params[:page])

@families = @filterrific.find

respond_to do |format|
format.js
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/family_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def new
.order(first_name: :asc),
params[:filterrific]
) || return
@children = @filterrific.find.page(params[:page])
@children = @filterrific.find
end

def create
Expand Down

0 comments on commit cb94693

Please sign in to comment.