moiristo / deep_cloneable

This gem gives every ActiveRecord::Base object the possibility to do a deep clone that includes user specified associations.
MIT License
786 stars 88 forks source link

Uncompatible with ActiveRecord 3.2 #12

Closed suborx closed 12 years ago

suborx commented 12 years ago

After update on Rails 3.2 method dup raise this error.

undefined local variable or method `attributes_from_column_definition' 
moiristo commented 12 years ago

The method has indeed been removed. Should be changed to something like 'self.class.column_defaults'. Will look into it when I have some time.

radeno commented 12 years ago

Change

attributes_from_column_definition

to

self.class.column_defaults.dup

it works.

moiristo commented 12 years ago

I will update this tonight and release a new version

moiristo commented 12 years ago

Done. Note that I've also made the Rails 3.1/2 branch the master branch and moved the Rails 2/3.0 implementation to a different branch.

radeno commented 12 years ago

Thank you! Fast and working :)

suborx commented 12 years ago

Thanks for so fast update.