<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -59,6 +59,8 @@ module HoboFields
 
 
   def can_wrap?(type, val)
+    col_type = type::COLUMN_TYPE
+    return false if val.blank? &amp;&amp; (col_type == :integer || col_type == :float || col_type == :decimal)
     klass = Object.instance_method(:class).bind(val).call # Make sure we get the *real* class
     arity = type.instance_method(:initialize).arity
     (arity == 1 || arity == -1) &amp;&amp; !@never_wrap_types.any? { |c| klass &lt;= c }</diff>
      <filename>hobofields/lib/hobo_fields.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>15e407f045866d2f4ae24ab4123d157226803960</id>
    </parent>
  </parents>
  <author>
    <name>Tom Locke</name>
    <email>tom@tomlocke.com</email>
  </author>
  <url>http://github.com/bryanlarsen/hobo/commit/8664b71641e728cb36eab4a6b8e7c31d999a4605</url>
  <id>8664b71641e728cb36eab4a6b8e7c31d999a4605</id>
  <committed-date>2009-04-07T03:47:13-07:00</committed-date>
  <authored-date>2009-04-07T03:47:13-07:00</authored-date>
  <message>HoboFields rich types fix - was converting blanks to 0 for numeric types</message>
  <tree>ddceaf77e6fcd451446b7ec7481d9632896fbc10</tree>
  <committer>
    <name>Tom Locke</name>
    <email>tom@tomlocke.com</email>
  </committer>
</commit>
