#59 ✓resolved
Mathijs Kwik

[fix] index-pages give an error in edge-hobo

Reported by Mathijs Kwik | July 21st, 2008 @ 10:18 AM

commit 3ad35f347a0edfdf45bac2fe8982575593ef21d7 added a line:

options[:order] = :default unless options[:order] || finder.send(:scope, :find)[:order]

which I changed to

options[:order] = :default unless options[:order] || finder.send(:scope, :find).try[:order]

to get index-pages working again.

Maybe I'm fixing the wrong issue here, if there should always be a 'find' scope available, but at least it gets the nomethoderror nil.[] out of the way.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages