Hi,
I solve my isseu
where(:$or => [{:target_device_os_max_ver =>
appver.to_s},{:target_device_os_min_ver => appver.to_s}])
On Friday, July 6, 2012 11:05:03 AM UTC+5:30, harshad wrote:
>
> Hi,
>
> I have a issue in OR confition in where clause. Use rails 3 + mongoDB
> (Mongoid). Please send me any solutions asap.
> I have a condition: where({:target_device_os_max_ver => appver.to_s} ||
> {:target_device_os_min_ver => appver.to_s})
>
> Thanks
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/wdSd8ZFI1DQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.