
Association ordering fails from search object
Reported by Devin Christensen | July 23rd, 2009 @ 08:01 PM
The following test fails.
it "should work as an option passed to search" do
%w(bjohnson zelnog thunt).each { |username| Order.create!(:user => User.create!(:username => username)) }
Order.search(:order => 'descend_by_user_username').all.should == Order.descend_by_user_username.all
end
http://github.com/quixoten/searchlogic
git://github.com/quixoten/searchlogic.git
Comments and changes to this ticket
-
Falk Pauser July 27th, 2009 @ 10:37 AM
I can confirm this behavior. I think my ticket could be a duplucate of this one, maybe partly: http://binarylogic.lighthouseapp.com/projects/16601/tickets/106-ord...
-
Devin Christensen July 27th, 2009 @ 05:42 PM
Verified fix on my box. Thanks skanev. This is a clean solution. Well done.
-
Ben Johnson July 28th, 2009 @ 04:36 PM
- State changed from new to resolved
Good deal, I applied this and it will be out on the next version: 2.1.13
Thanks
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 ยป
Provides common named scopes and object based searching.