Mateo
Mateo
I have the same problem, if I remove the include in my Job of Sidekiq Status it works
Found the problem, somehow the sidekiq-status module is required after requiring `sidekiq-status/testing/inline`. This solutions works, but I think is a temporary solution: `spec_helper.rb` ```ruby config.before(:suite) { require 'sidekiq-status/testing/inline' } ```
any updates to this? i think i have the same issue #1490
EDIT: using `count` instead of `size` works, but can't explain why
@Edouard-chin now you can reproduce the problem. the problem is the `size` method, if you replace it with `count` it works fine. Bug Template ```ruby # frozen_string_literal: true require "bundler/inline"...
@Edouard-chin try to replace size with count, and you'll see that a destroy on associated records will be applied. Reference to [Associations Guide](https://guides.rubyonrails.org/association_basics.html#methods-added-by-has-many-collection-objects) The `collection=` method makes the collection contain...
@iamradioactive Thank you for the explanation, I wouldn't have got the answer this fast.
Had to put also this code `ActiveRecord::Base.has_many_inversing = true`, cause is not set default true as the comment explains for Rails 6+
Try Vercel or Netlify
any updates about this?