<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,8 +7,7 @@ class Harddisk &lt; ActiveRecord::Base
 
   #################################################
   # VALIDATIONS
-  validates_uniqueness_of :serialnumber
-  validates_presence_of :serialnumber, :size, :mark_id, :model_id
+  validates_presence_of :size, :mark_id, :model_id
   validates_numericality_of   :size
 
   def description_model</diff>
      <filename>app/models/harddisk.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@
  &lt;% end %&gt;
 &lt;% for harddisk in @harddisks %&gt;
   &lt;tr  class=&quot;&lt;%= cycle(&quot;rowA&quot;,&quot;rowB&quot;) %&gt;&quot;&gt;
-    &lt;%= content_tag('td',harddisk.serialnumber, options = {:nowrap =&gt; true}) %&gt;
+    &lt;%= content_tag('td',harddisk.serialnumber.nil? ? '-' : harddisk.serialnumber, options = {:nowrap =&gt; true}) %&gt;
     &lt;%= content_tag('td', harddisk.model_id.nil? ? '-' : harddisk.description_model, options = {:nowrap =&gt; true}) %&gt;
     &lt;%= content_tag('td',harddisk.size, options = {:nowrap =&gt; true}) rescue nil  %&gt;
     &lt;%= content_tag('td',harddisk.unit.nil? ? '-' : harddisk.unit.to_s,</diff>
      <filename>app/views/harddisks/_list.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>29d98b6e34dde065c3ed4d90852f23bb251f3fb3</id>
    </parent>
  </parents>
  <author>
    <name>cesar</name>
    <email>cesar@cesar.unl.edu.ar</email>
  </author>
  <url>http://github.com/cesarediaz/inventory/commit/2657458fb0b1f9c8bd7b15fc925a24bc211e5f3c</url>
  <id>2657458fb0b1f9c8bd7b15fc925a24bc211e5f3c</id>
  <committed-date>2009-10-06T17:21:49-07:00</committed-date>
  <authored-date>2009-10-06T17:21:49-07:00</authored-date>
  <message>- Model
      * deleted validations presence of 'serialnumber'

- Partial
      * little changes to show an '-' instead nothing if
        there is not any data serial number</message>
  <tree>ed2b2971b14022fb642ae33295492c432a8e6b76</tree>
  <committer>
    <name>cesar</name>
    <email>cesar@cesar.unl.edu.ar</email>
  </committer>
</commit>
