*where(*:target_device_os_max_ver =>
appver.to_s*).or(*:target_device_os_min_ver
=> appver.to_s*)*

On 6 July 2012 11:05, harshad <[email protected]> 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/-/GxHcseqBTNAJ.
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
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.

Reply via email to