Skip to content

Commit

Permalink
use precision of 1/10th mile when displaying distances
Browse files Browse the repository at this point in the history
  • Loading branch information
herestomwiththeweather committed Feb 2, 2009
1 parent fe304f8 commit 548a725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/bids/_bid.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<% end -%>
<br>
<% if current_person?(bid.req.person) && !current_person.address.nil? && !bid.person.address.nil? && !current_person?(bid.person) -%>
<%= number_with_precision(bid.person.address.distance_to(current_person.address)).to_s %> miles away
<%= number_with_precision(bid.person.address.distance_to(current_person.address), 1).to_s %> miles away
<% end -%>
</p>
</li>
2 changes: 1 addition & 1 deletion app/views/reqs/_req.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<% end -%>
<br>
<% if !current_person.address.nil? && !req.person.address.nil? && !current_person?(req.person) -%>
<%= number_with_precision(req.person.address.distance_to(current_person.address)).to_s %> miles away
<%= number_with_precision(req.person.address.distance_to(current_person.address), 1).to_s %> miles away
<% end -%>
</p>
</li>

0 comments on commit 548a725

Please sign in to comment.