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
|
def store_dir
|
||||||
if Rails.env.test?
|
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
|
else
|
||||||
"uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
|
"uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user