Skip to content
New issue

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

cache_only breaks validation on updates #2216

Closed
CodingAnarchy opened this issue Aug 20, 2017 · 1 comment
Closed

cache_only breaks validation on updates #2216

CodingAnarchy opened this issue Aug 20, 2017 · 1 comment

Comments

@CodingAnarchy
Copy link

CodingAnarchy commented Aug 20, 2017

I have a class like this:

class Child < ActiveRecord::Base
    mount_uploader :image, ImageUploader
   
    validate :image, presence: true
end

In the specs, I have some various tests that validate cases where this model will be updated, but if I set config.cache_only = true in my configuration of CarrierWave in the test environment, this validation fails when the update occurs.

I would like to use this feature, so as not to have to copy all the files to a :file storage, but I can't until this problem is resolved. Thanks.

@mshibuya
Copy link
Member

#2658 should have solved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants