dwilkie / carrierwave_direct

Process your uploads in the background by uploading directly to S3
MIT License
840 stars 181 forks source link

extension_white_list is actually extension_whitelist #203

Closed mxmzb closed 6 years ago

mxmzb commented 8 years ago

https://github.com/dwilkie/carrierwave_direct/search?q=white&type=Code&utf8=%E2%9C%93

which led me to

undefined local variable or method `extension_white_list' for #<ImageUploader:0x007fb277373aa8>
Did you mean?  extension_whitelist

in my app.

quick fix though: add alias_method :extension_white_list, :extension_whitelist to your uploader.

lawso017 commented 8 years ago

Not sure I see where that message is coming from @thelamborghinistory -- I've used extension_white_list consistently throughout my app.

p8 commented 8 years ago

This is a Carrierwave related issue. They have renamed extension_white_list to extenstion_whitelist. https://github.com/carrierwaveuploader/carrierwave/issues/1896#issuecomment-208846564

kreintjes commented 7 years ago

@mxmzb this happens when using Carrierwave 1.0 or higher. Currently carrierwave_direct does not yet support Carrierwave 1.x, but I have created a PR that fixes this: https://github.com/dwilkie/carrierwave_direct/pull/213. Consider using Carrierwave 0.11.x in the meantime or use my fork.

p8 commented 6 years ago

This has been fixed on master