title: Rails 4: Smarter CSV will not add single field
body: <p>I am trying to use <a href="https://github.com/tilo/smarter_csv" rel="nofollow">SmarterCSV</a> to add entries into my database and it is working fine except for one field.  I have a <code>start</code> field and a <code>end</code> field, both of which are of the <code>date</code> type, and when I try to add a CSV with both, only 1 value gets inserted.</p>
  
  <p><strong>test.csv</strong></p>
  
  <pre><code>user_id,regular,overtime,doubletime,sick,vacation,holiday,personal,other,start,end
  100,5.28,0.00,0.00,0.00,0.00,0.00,0.00,0.00,6/1/2016,6/30/2016
  </code></pre>
  
  <p><strong>import function</strong></p>
  
  <pre><code>def self.import(file)
      options = { :downcase_header =&gt; false }
      n = SmarterCSV.process(file.tempfile, options) do |array|
          array.first[:employee_id] = Employee.find_by(user_id: array.first[:user_id]).id
          Timecard.create( array.first )
      end
  end
  </code></pre>
  
  <p>...results in</p>
  
  <pre><code>INSERT INTO "timecards" ("user_id", "regular", "overtime", "doubletime", "sick", "vacation", "holiday", "personal", "other", "start", "employee_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id"  [["user_id", 100], ["regular", 5.28], ["overtime", 0.0], ["doubletime", 0.0], ["sick", 0.0], ["vacation", 0.0], ["holiday", 0.0], ["personal", 0.0], ["other", 0.0], ["start", "2016-01-06"], ["employee_id", 18], ["created_at", "2016-07-08 19:00:06.124457"], ["updated_at", "2016-07-08 19:00:06.124457"]]
  </code></pre>
  
  <p>...and my <code>:end</code> should be permitted:</p>
  
  <pre><code>def timecard_params
      params.require(:timecard).permit(:start, :end, :employee, :user_id, :regular, :overtime, :doubletime, :sick, :vacation, :holiday, :personal, :other)
  end
  </code></pre>