Skip to content
Browse files

fixed deprecation warning in rails 3.2 - see rails commit 401393b

  • Loading branch information...
1 parent 6b1df3d commit 1a4841d94dc8d1e432308e648ee1874fc4748cb8 Martin Linkhorst committed Jan 14, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/mongoid_spacial/spacial/document.rb
View
8 lib/mongoid_spacial/spacial/document.rb
@@ -20,11 +20,9 @@ def spacial_index name, *options
end
end
- module InstanceMethods #:nodoc:
- def distance_from(key,p2, opts = {})
- p1 = self.send(key)
- Mongoid::Spacial.distance(p1, p2, opts)
- end
+ def distance_from(key,p2, opts = {})
+ p1 = self.send(key)
+ Mongoid::Spacial.distance(p1, p2, opts)
end
end
end

0 comments on commit 1a4841d

Please sign in to comment.
Something went wrong with that request. Please try again.