origin icon indicating copy to clipboard operation
origin copied to clipboard

A Ruby DSL for building MongoDB queries

Results 24 origin issues
Sort by recently updated
recently updated
newest added

Backport geo_intersects support for version 1.1.0-stable

As described here #81 would it be possible to add support for more geospatial queries? As @durran mentions for example it would be nice to have `queryable.geo_within_box` and `queryable.where(:field.geo_within_box)`, etc....

When chaining two `where` criteria on the same field, former ones will be ignored, which should be a bug. For example, `User.where(role: 1).where(role: 2)` now generates `selector: {"role"=>2}`, but the...

`[30.0, 27.2, -2.0].mongoize` returns `[30, 27.2, -2.0]` and `[30.0, 27.2, -2.0].mongoize.map{|e| e.class}` returns `[Fixnum, Float, Fixnum]`

Sometimes when exploring or debugging code it's necessary to know where some method was defined. For this purpose `Method#source_location` is used. It reports a filename and a line in the...

Please, add the `__FILE__` and `__LINE__` constants as the 2nd and 3rd arguments to the [class-](https://github.com/mongoid/origin/blob/master/lib/origin/forwardable.rb#L53) and [module_eval](https://github.com/mongoid/origin/blob/master/lib/origin/forwardable.rb#L47) calls in `Origin::Forwardable#__forward__` to impove the debugging process. ``` ruby require 'mongoid'...

Added `within_circle` and `within_sphere` queries to geo_spacial selector to handle mongodb's respective $center and $centerSphere queries. This also fixes a small typo in the documentation for `intersects_polygon` and `within_polygon` regarding...