[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
-
Mathijs Kwik July 23rd, 2008 @ 07:28 PM
- Tag changed from controllers, edge to controllers, defect, edge
error was fixed by commit http://github.com/tablatom/hobo/...
-
Mathijs Kwik July 25th, 2008 @ 11:47 AM
- Title changed from index-pages give an error in edge-hobo to [fix] index-pages give an error in edge-hobo
-
Tom Locke July 28th, 2008 @ 07:46 PM
- State changed from new to resolved
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 »
People watching this ticket
Tags
Referenced by
- 504 Require line in Rakefile prevents Hobo gems from being upgraded This goes back to a lower-level issue with using rake tas...