mislav/will_paginate — Issue #219: Upgrading from will_paginate 3.0.pre2 to 3.0.1/2
Author: johnkelly
Created: 2012-01-09 23:36:45+00:00
State: open

I'm trying to upgrade the will_paginate gem to the latest version to remove the warning message that appears when running rake in rails 3.1. After upgrading the gem, I'm getting several spec failures and I can't understand what is causing them to work in will_paginate 3.0.pre2 but not in 3.0.1 or 3.0.2.

The environment is in Ruby 1.8.7EE and Rails 3.1.3

Spec Failure Examples:
1)
Message: undefined method "paginate" for #
Code: ```teachers.uniq.paginate :page => params[:page], :order => "lower(last_name) ASC"```
Where teachers is an array

2)
Message: undefined method "paginate" for #
Code: ``` Program.all.sort_by { |p| p.full_title }.paginate :page => params[:page]```

3)
Message: undefined method "paginate" for #
Code: ```Staffer.students(params[:search][:teacher_email], @subscriber).paginate :page => params[:page]```