0

I am using solidus with rails5. I want a feature in my site to bulk import my product with all the associations. I found out that there is a gem datashift_solidus that is here for this purpose.

After figuring out how to use it, I was getting an error.

undefined method `type_cast_from_database' for #<ActiveRecord::ConnectionAdapters::PostgreSQLColumn:0x007f995293a420> 

After researching I was able to figure out that when this gem was written there was rails4 going on and this function is compatible with ActiveRecord version 4 but not version5.

Is there a way I can make it work. If so then it will be real convenient.

I am not sure if there is any kind of hack available to fix this.

Thanks in advance :)

4

1 回答 1

0

cast在 Rails 5.2 中更改为对我有用的方法。

问题链接

于 2017-12-12T21:27:16.390 回答