amoeba-rb/amoeba

Nullify and set don't work on an STI model

rupurt opened this issue · 2 comments

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.

Please enable inheritance by propagate

👍 thanks