geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.
MIT License
1.57k stars 245 forks source link

Error with reload in rails 3 #27

Closed stevenbristol closed 10 years ago

stevenbristol commented 13 years ago

In Rails 3 calling reload on a AR object returns an error. This is because the def for reload is:

reload(options = nil)

prepare_for_find_or_count does not take this into consideration when it pushes the options back on the args.

This patch just does a test and removes the nil if it exists.

I got a load error when I tried to run the tests so please do run them. If there's an issue I can work through the load error and sort it out.

mnoack commented 10 years ago

Closing as this issue is old. I'm happy to address it if you're still interested and would like to reopen.