mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Update location where attachment uploads are stored in test environment (#91)
This commit is contained in:
committed by
Pranav Raj S
parent
9afbc8c55f
commit
1b52316c16
@@ -3,7 +3,7 @@ class AttachmentUploader < CarrierWave::Uploader::Base
|
||||
|
||||
def store_dir
|
||||
if Rails.env.test?
|
||||
"#{Rails.root}/spec/support/uploads/avatar/#{model.class.to_s.underscore}/#{model.id}"
|
||||
"#{Rails.root}/spec/support/uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
|
||||
else
|
||||
"uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user