Reinier de Lange

Results 35 comments of Reinier de Lange

Probably related to the pull request I just sent: https://github.com/freelancing-god/ts-delayed-delta/pull/14

I've never used Mongoid myself, but the reflection on associations is probably a lot different? As I don't have any experience with it I won't be adding this, but PR's...

Hi Andy, Thank you for your interest! The example you specified is actually a hm-through, not habtm. I think it also exemplifies why it works like this: some would like...

Hi, thanks for your question. I think there has always been some discussion regarding 'through' relationships and what they mean. You could say that everything needs to be duped, but...

Hi, If you only include the child (`parent.deep_clone(include: :child)`), I think the `grand_child_id` should remain the same for the copy of the child? Is that what you want? The example...

Hi, I'm actually not using activestorage myself, but as you have a `many` relatonship, I think you should just iterate over it, something like this: ```ruby def copy @source =...

One more thing; I assume here that this is a simplified example. When you're not including associations in your copy, you might as well just use ActiveRecord's `dup` method.

When you're not including any associations, this gem does exactly the same as `dup`, therefore I don't think you really need it. I think I would approach this by doing...

Looking at the code I would already rewrite it a little. Moreover, after reading [this](https://api.rubyonrails.org/classes/ActiveStorage/Blob.html#method-i-open), I think using `open` might well be the issue, as the tempfile is closed after...

@spacerobotTR In that case it looks like one or more of the original uploads are already broken somehow?