Nullify and set don't work on an STI model
rupurt opened this issue · 2 comments
rupurt commented
Is this intended? We have the following
class Activity < ActiveRecord::Base
amoeba do
nullify :uuid
end
end
module Activities
class Video < ::Activity
end
end
activity = Activities::Video.last
cloned_activity = activity.amoeba_dup
cloned_activity.uuid == activity.uuid # true when I would have expected false
It does work when I move the amoeba block into the the child class.
simonoff commented
Please enable inheritance by propagate
rupurt commented
👍 thanks