lib/mongoid/geo/fields.rb in mongoid_geo-0.5.1 vs lib/mongoid/geo/fields.rb in mongoid_geo-0.5.2
- old
+ new
@@ -26,10 +26,11 @@
end
define_method("#{meth}=") do |value|
if options[:geo]
self.class.send :field, :distance, :type => Float
- self.class.send :field, :fromLocation, :type => String
+ self.class.send :field, :fromHash, :type => String
+ self.class.send :field, :fromPoint, :type => Array
end
if options[:type] == Array && options[:geo]
value = case value
when String
\ No newline at end of file