Skip to content

Instantly share code, notes, and snippets.

@vanstee
Created September 1, 2011 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanstee/1187074 to your computer and use it in GitHub Desktop.
Save vanstee/1187074 to your computer and use it in GitHub Desktop.
....
requirements = scoped_requirements_for_index_or_export.page(page).per(params[:per_page]).all
requirements.map(&:id) #apparently makes this work....
logger.debug "DEBUG: Requirement: #{@requirement.id}"
logger.debug "DEBUG: Last Requirement: #{requirements.last.id}"
if requirements.last.id == @requirement.id and requirements.num_pages != page
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment