Change "_filename" to "_identifier" for carrierwave
This commit is contained in:
1 parent
5518ae362d
commit
9fcf8280fa
8 files changed
+15
-15
No files matched your search
@@ -172,7 +172,7 @@ class Admin::PurchasesController < ApplicationController
|
||||
|
||||
|
||||
def build_file(orig_zip, zip_name, dir, object, type = nil)
|
||||
title = object.file_filename
|
||||
title = object.file_identifier
|
||||
temp = File.new(dir + '/' + title, 'w+')
|
||||
temp.write orig_zip.read(zip_name + '/' + (type ? (type + '/') : '') + title)
|
||||
object.file = temp
|
||||
|
||||
Reference in new issue
Block a user