<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,7 +31,7 @@ class Thing &lt; ActiveRecord::Base
   end
   
   def multiple(other_thing)
-    (other_thing.value_as(self.unit).to_f / self.value.to_f).round()
+    self.value != 0 ? (other_thing.value_as(self.unit).to_f / self.value.to_f).round() : 0
   end
   
   def inflected_body(count)</diff>
      <filename>app/models/thing.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bc0d735b9ccacaf2c30ffe8e9fd554c081ac7a32</id>
    </parent>
  </parents>
  <author>
    <name>Mary Cook</name>
    <email>maryrosecook@maryrosecookhom.home</email>
  </author>
  <url>http://github.com/maryrosecook/kisses/commit/e3437b37af497bc6d788d27b1f3f5c5075d75e96</url>
  <id>e3437b37af497bc6d788d27b1f3f5c5075d75e96</id>
  <committed-date>2009-10-13T14:16:10-07:00</committed-date>
  <authored-date>2009-10-13T14:16:10-07:00</authored-date>
  <message>Stopped divide by zero error when converting value of something from one unit to another</message>
  <tree>6892f149a754445da358b554ac15a4e44465a6d2</tree>
  <committer>
    <name>Mary Cook</name>
    <email>maryrosecook@maryrosecookhom.home</email>
  </committer>
</commit>
