Skip to content
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

AO3-4449 update will paginate #2314

Merged
merged 2 commits into from Feb 26, 2016
Merged

AO3-4449 update will paginate #2314

merged 2 commits into from Feb 26, 2016

Conversation

zz9pzza
Copy link
Contributor

@zz9pzza zz9pzza commented Jan 17, 2016

@@ -84,7 +84,7 @@ def index
respond_to do |format|
format.html {
if @challenge.user_allowed_to_see_signups?(current_user)
@challenge_signups = @collection.signups.joins(:pseud).paginate(:page => params[:page], :per_page => ArchiveConfig.ITEMS_PER_PAGE, :order => "pseuds.name")
@challenge_signups = @collection.signups.joins(:pseud).order("pseuds.name").paginate(:page => params[:page], :per_page => ArchiveConfig.ITEMS_PER_PAGE)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the new Ruby 1.9 hash syntax.

@scottsds
Copy link
Member

This looks fine. I added a small note to the issue regarding testing.

zz9pzza added a commit that referenced this pull request Feb 26, 2016
AO3-4449 update will paginate
@zz9pzza zz9pzza merged commit b8da7de into otwcode:master Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants