Permalink
Browse files

Merge pull request #17 from linki/master

fixed deprecation warning in rails 3.2
  • Loading branch information...
2 parents 6b1df3d + 1a4841d commit f45dd87c78fc9d25b7c3d165286c349a0a84356f @ryanong 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 f45dd87

Please sign in to comment.