>From my testing it looks like this can't be done. ex:

Location.find_by_sql(some_sql).all('title.like' => '%something%')

It seems that whatever scope is at the end of the chain dominates the query 
and the find_by_sql results are no longer relevant.

Is there someway to achieve a chained query like this?

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/UkeuLM7156gJ.
To post to this group, send email to datamapper@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to