发布于 2015-04-07 04:42:39
Griddler::Email有一个attachments属性,即:
包含任何附件的File对象数组。
所以,如果你有这样的模型:
class Assessment
has_attached_file :file
end您可以简单地这样做,例如:
@email.attachments.each{|f| Attachment.create(file: f)}https://stackoverflow.com/questions/29483504
复制相似问题