apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Support for mongoid_geo #34

Closed oli-g closed 13 years ago

oli-g commented 13 years ago

Now Gmaps4rails.create_json takes the values for latitude and longitude in this way:

object.send(object.gmaps4rails_options[:lat_column])
object.send(object.gmaps4rails_options[:lng_column])

Before this commit the method took those values in this way:

object[object.gmaps4rails_options[:lat_column]]
object[object.gmaps4rails_options[:lng_column]]
apneadiving commented 13 years ago

Thanks for this, just beware not to include your .idea files in the gem :) New version released btw.

oli-g commented 13 years ago

My .idea files? where??? :)))) thank you for the merge!!!

apneadiving commented 13 years ago

They were at the root of the project, I already removed them. Thanks to you :)

oli-g commented 13 years ago

Strange... I don't have any .idea file in my local root!

apneadiving commented 13 years ago

damn, I don't know where it came from...