Comments (4)
Yeah! Makes sense ;) I'm sure you can make your own little patch to wrap this, no?
:) Then give me a pull request.
from mongoid-geo.
OK, I made the fix and also auto require the fields.rb as it should not conflict anymore.
Hope u like it (v. 0.1.6)
from mongoid-geo.
First quick and dirty solution that solved my problem.
TeuF@677f9b7
But yes really dirty :(
from mongoid-geo.
I think my latest commit which enables this for both #location and #position where either can contain the #lat, #lng attributes is a little better. I extended the #to_point method instead ;) Cheers!
from mongoid-geo.
Related Issues (20)
- rake specs fail HOT 3
- to_model doesn't work with latest Mongoid HOT 3
- store geo data and using Spherical Model HOT 4
- if trying to save array, first (lat) is always 0 HOT 3
- nil distance HOT 7
- Invalid Gemspec Error HOT 3
- Invalid gemspec in [mongoid_geo-0.4.2.gemspec]: invalid date format in specification: "2011-05-03 00:00:00.000000000Z" HOT 3
- Maintain Distance Calculations in Mongoid::Criteria HOT 13
- undefined method 'distance=' for Model HOT 3
- Invalid date format in gemspec HOT 16
- `geo_index': undefined method `define_singleton_method' HOT 5
- Removal of $geoNear. Why?
- Removal of $geoNear. Why? HOT 3
- Gemfile issues HOT 1
- geo_near throwing error HOT 13
- Uninitialized constant Mongoid::Geo HOT 2
- Current gem doesn't like REE HOT 2
- Bug in geo_near HOT 11
- Problem with mongoid 2.2.1 and << operator HOT 1
- Gemspec should not reference bson_ext HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoid-geo.