Open drobazko opened 9 years ago
Any update on this issue?
@JPMallow, I have monkey patched it.
config/initializers/geo_patch.rb
module Geokit
module ActsAsMappable
module SingletonMethods
def find(*args)
prepare_for_find_or_count(:find, args)
args.last.is_a?(Hash) && args.last.empty? ? super(*args[0..-2]) : super(*args)
end
end
end
end
Thanks @drobazko But, I have moved to geocoder gem as it does my work as charm.
Hi, guys. Seems to be the issue.
Rails 4.1.12 ruby 2.1.0
restaurant.rb
So when I try ruby
Restaurant.find(1)
the exception raised.