Closed dblock closed 6 years ago
@jnfeinstein I think #227 may have fixed this, care to add the specs from this issue and check it out?
This is absolutely fixed by #227. Previously any child class that ran track_history
would overwrite the parent class's options, so you could only have one configuration per class family.
I noticed that the reset!
method will not accomplish a full reset since these classes are caching their options via @history_trackable_options ||= mongoid_history_options.prepared
. I have a feeling that reset!
is not widely used in production, you may want to only include it as a spec helper.
Looking forward to a PR! Makes total sense re: spec helper. Thanks.
Fixed per #229.
See BUGBUG below, looks wrong.