capitalize image names

This commit is contained in:
2022-12-17 22:24:05 +02:00
parent 430de769ee
commit 9841ee03e8
2 changed files with 21 additions and 18 deletions

View File

@ -84,7 +84,10 @@ module Merged
def self.transform
Image.all.each do |image|
File.rename image.filename_old , image.filename_new
image.name = image.name.gsub("_" , " ")
image.name = image.name.capitalize
image.save
# image.created_at = image.created_at.to_date
end
end