Guilherme Goettems Schneider
Guilherme Goettems Schneider
I have a similar use case. As a workaround I added the following to `config/environments/test.rb` ```ruby config.middleware.delete Bullet::Rack ```
I think this is the same problem described by @mrnugget in https://github.com/mhfs/devise-async/pull/52#issuecomment-47896740. He also proposes a solution.
> We experienced conflicts that went beyond the ordering @Tolsto It would be useful to know which kind of conflicts besides ordering can happen in the schema. Do you have...
I think we should prefer #1022 to keep benefit of prepared statements. See https://github.com/kaminari/kaminari/pull/979#issuecomment-636372680
How about dynamic checking for `ActiveRecord::VERSION::MAJOR >= 5` and have both implementations? It would make it easier to migrate to preferred solution once support for Active Record < 5 is...
@bendilley Fair point. How about ```ruby unscoped.from(subquery, 'subquery').count ```
Very cool! :rofl: Let me check that to understand why it is that not an option...
Ok, so it also need to remove STI scope, as you are did for #1015. I'm not sure what's the issue with it, beside not being very nice syntax.
As a workaround, I'm using this: ```ruby headers = { 'Content-Type' => /multipart\/form-data/ } match_multipart_body = ->(request) do request.body.force_encoding('BINARY') request.body =~ /Content-Type: image\/jpeg/ end stub_request(:post, '/my-endpoint'). with(headers: headers, &match_multipart_body). to_return(status:...
I'm using this as a workaround: https://github.com/bblimke/webmock/issues/623#issuecomment-536603971