Permalink
Browse files

km not mi

  • Loading branch information...
1 parent b9335ec commit 74d3d181702e52b46372cd61190fab9a70b20f67 @johnrees johnrees committed Feb 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/lab.rb
View
@@ -103,7 +103,7 @@ def needs_admin?
def nearby_labs same_country = true, max_distance = 1000
if nearbys(max_distance)
- labs = nearbys(max_distance).limit(5).with_approved_state
+ labs = nearbys(max_distance, units: :km).limit(5).with_approved_state
if same_country
labs = labs.where(country_code: country_code)
end

0 comments on commit 74d3d18

Please sign in to comment.