We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In project we have models with such lines:
mount_uploader :file, DocUploader mount_base64_uploader :signature, SignatureUploader
mount_uploader :file, DocUploader
mount_base64_uploader :signature, SignatureUploader
Isolator raises exception on all such models when find Model.create(file: file) or Model.update(file: file)
Model.create(file: file)
Model.update(file: file)
I tried to add these models and uploaders to .isolator_todo.yml, but still getting exceptions.
.isolator_todo.yml
May be I can ignore such situation using Isolator.adapters.http.ignore_if, but I don't understand the trigger on which this condition may rely.
Isolator.adapters.http.ignore_if
Can anyone help with this question?
The text was updated successfully, but these errors were encountered:
.isolator_todo.yml could only work with your app's code; but in your case, http requests are made from the gem; so, it's not an option.
You should be able to use ignore_if. You can access the violating method arguments in it:
ignore_if
Isolator.adapters.http.ignore_if do |*args| aws_request?(args) end
You need to figure out how to distinguish AWS requests from others.
Another option could be is to check that you're inside the carrier_wave gem by checking for caller_locations.
carrier_wave
caller_locations
Sorry, something went wrong.
@palkan thank you!
No branches or pull requests
In project we have models with such lines:
mount_uploader :file, DocUploader
mount_base64_uploader :signature, SignatureUploader
Isolator raises exception on all such models when find
Model.create(file: file)
orModel.update(file: file)
I tried to add these models and uploaders to
.isolator_todo.yml
, but still getting exceptions.May be I can ignore such situation using
Isolator.adapters.http.ignore_if
, but I don't understand the trigger on which this condition may rely.Can anyone help with this question?
The text was updated successfully, but these errors were encountered: