Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

point = nil should work

  • Loading branch information...
commit 7ce873f25fd698c22ab5e342f445338693ce098f 1 parent ea86115
@nofxx nofxx authored
View
2  lib/mongoid_geospatial/fields/point.rb
@@ -58,7 +58,7 @@ class << self
# Database -> Object
def demongoize(object)
- # return unless object && !object.empty?
+ return unless object
Point.new(*object)
end
View
2  spec/mongoid_geospatial/fields/point_spec.rb
@@ -9,7 +9,7 @@
it "should not fail if point is nil" do
bar = Bar.create!(name: "Moe's")
- bar.location.x.should be_nil
+ bar.location.should be_nil
end
describe "methods" do
Please sign in to comment.
Something went wrong with that request. Please try again.