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
CarrierWave.root not updating #1743
Comments
@bensie any insights? Thanks |
@randoum please try |
|
@randoum I never suggested attempting to assign to Rather, give this a go: CarrierWave.configure do |config|
config.root = Rails.root.to_s
end
pp CarrierWave::Uploader::Base.root |
Ok. This is strange. Quick explanation : few months ago I realized that Well anyhow thanks for your answers. |
Found this bug while trying to use
CarrierWave.clean_cached_files!
from a rake task with a customCarrierWave.root
path. Trimmed it down to the following step by step that can be reproduced on a new project:Create a new project, and create a config/initializers/carrier_wave.rb with content:
The output is:
Unlike what would be expected,
config.root =
does not update the value ofCarrierWave.root
Thanks in advance for your feedback
The text was updated successfully, but these errors were encountered: