change code to take new filenames

This commit is contained in:
2022-12-17 15:00:47 +02:00
parent f7147f79e2
commit fc2c390fd1
7 changed files with 15 additions and 18 deletions

View File

@ -70,15 +70,11 @@ module Merged
Image.reload
end
def assert_name
image_root + "/" + self.name
def asset_name
image_root + "/" + self.id.to_s
end
def filename_old
full_filename = self.name + "." + self.type
Rails.root.join(asset_root, full_filename)
end
def filename_new
def full_filename
full_filename = self.id.to_s + "." + self.type
Rails.root.join(asset_root, full_filename)
end