Issue in OR condition

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

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

Hi,

I solve my isseu

where(:$or => [{:target_device_os_max_ver => appver.to_s},{:target_device_os_min_ver => appver.to_s}])