zdennis/ar-extensions — Issue #15: issue can't convert Time into String
Author: lothar59
Created: 2011-10-20 09:55:45+00:00
State: open

I have this issue when trying to create a new record.

>> columns = [:libelle]
=> [:libelle]
>> values = ["russe"]
=> ["russe"]
>> Langue.import columns, values
TypeError: can't convert Time into String
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in `<<'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in `add_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in `each'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in `add_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:311:in `each_pair'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:311:in `add_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:205:in `import'
from (irb):7