Daniel (dB.) Doubrovkine

Results 3350 comments of Daniel (dB.) Doubrovkine

I played with this, and it's definitely a bug. In short, when the parent is saved, `changes` doesn't include the changes from the child relation during update, however it does...

Bump @manxingxing @glebtv What do we want to do about this?

Ooooof I know for sure that Artsy relies on the fact that slugs default to ID, and aren't `nil`. This is a massive breaking change, isn't it?

> @dblock we should make this behavior configurable. As noted above, its inconsistent. A "never touched" new model will have slug default to ID, but once you call `clear_slug!` the...

Do you have a `User` model in your app? Try to find the call stack of this exception?

@SebastianSzturo Does setting `Mongoid::History.modifier_class_name = nil` work? We should document it, too and/or add support for that. Would appreciate a PR either way.

@SebastianSzturo Try writing a spec that reproduces this and the fix should be fairly trivial to skip the modifier logic on `nil`.

We still want this, maybe someone cares to help?

I think the documentation is correct in its intentions, but the code doesn't do what it says. So lets call it a bug? Would appreciate tests + PR.

Anyone wants to take a look at this?