will_paginate: extra options are cut off from count_options.
Reported by Bence Golda | June 14th, 2007 @ 09:41 AM
I'm using some authentication related plugins that alter ActiveRecord::Base.count() and find() methods and those methods need some extra options passed through your magic WillPaginate::Finder::ClassMethods::method_missing_with_paginate(). find() gets those extras but count() -- 'cause of that destructive slicing. The attached diff shows what I'd love to see in later revisions... :)
Comments and changes to this ticket
-
Chris Wanstrath June 14th, 2007 @ 09:41 AM
- State changed from new to resolved
Fixed in http://require.errtheblog.com/pl.... Thanks Bence and Mislav!
-
Mislav June 14th, 2007 @ 09:41 AM
Chris, I closed this ticket from the commit message.
... Simply allow all options [#37 state:resolved] [Bence Golda]
Any ideas why it didn't work? Lighthouse hiccup? The changeset never showed up in the overview. Oh, well ... :/
-
Chris Wanstrath June 14th, 2007 @ 09:41 AM
It may have to be the very last thing in the message. Mine are always at the end.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป