dougal/acts_as_indexed — Issue #23: Will Paginate integration broken
Author: Odaeus
Created: 2012-01-11 17:25:22+00:00
State: open

I think that the Will Paginate internals have changed sufficiently to break the paginate_search integration:

@items = Library::Item.paginate_search(params[:query], page: params[:page])

```
undefined method `wp_parse_options' for #
activerecord (3.1.3) lib/active_record/base.rb:1088:in `method_missing'
acts_as_indexed (0.7.7) lib/will_paginate_search.rb:12:in `paginate_search'
app/controllers/libraries_controller.rb:10:in `search'
```

I can't find wp_parse_options in the codebase at all now and the way of fetching those options seems radically different now. I haven't had time to investigate further.

Gemfile.lock:

```
will_paginate (3.0.2)
acts_as_indexed (0.7.7)
```

I also found I had to explicitly require the will_paginate_search file, which isn't mentioned in the documentation.