You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour:dup.test_string is set to nil, the same as test.test_string. Actual behaviour: NoMethodError (undefined method gsub! for nil:NilClass) exception is raised at lib/amoeba/cloner.rb line 159.
The text was updated successfully, but these errors were encountered:
If a field is set as follows:
then
amoeba_dup
fails if the value in the field is nil.To reproduce
Create a migration:
and the corresponding model:
Then:
Expected behaviour:
dup.test_string
is set tonil
, the same astest.test_string
.Actual behaviour: NoMethodError (undefined method
gsub!
for nil:NilClass) exception is raised atlib/amoeba/cloner.rb
line 159.The text was updated successfully, but these errors were encountered: