
Query::Path barfing on .gt
Reported by Ben Burkert | August 16th, 2008 @ 11:28 AM
I attached a failing spec for the problem. Queries that use a Query::Path and .gt, .lt type modifier are throwing an "Unknown property 'to_sym'" error:
Vehicle.all(Vehicle.model.created_on.lt => Time.now)
Comments and changes to this ticket
-
Adam French August 17th, 2008 @ 02:34 PM
- Tag changed from dm-core, spec to dm-core, patch, spec
a patch for supporting this behavior is available at
https://gist.github.com/209a199f...
however, I'm hesitant to actually commit this because I can't get the dm-more specs to run using it. All the dependency problems totally get in the way.
-
Dan Kubb (dkubb) January 8th, 2009 @ 02:20 PM
- State changed from new to unconfirmed
- Assigned user cleared.
-
Dan Kubb (dkubb) February 21st, 2009 @ 01:54 AM
- Assigned user set to Dan Kubb (dkubb)
- State changed from unconfirmed to resolved
I can confirm this is resolved on the dm-core/next branch.
The attached script demonstrates the fix. Marking this as 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 »