Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # I know there are 80 issues associated with this project
- page_one = RedmineClient::Issue.find(:all, :params => { :project_id => @project_id, :page => 1 } )
- # returns 1st 25 records
- page_five = RedmineClient::Issue.find(:all, :params => { :project_id => @project_id, :page => 5 })
- # returns 1st 25 records
- page_one == page_five # => true
- # i've decided that I'm just going to loop thru and if any page has < 25 records, that's the last page. if it doesn't i'm going to test and see if i've already pulled the ID by getting a list of them.
Add Comment
Please, Sign In to add comment