capitalize image names

This commit is contained in:
Torsten 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

View File

@ -1,117 +1,117 @@
---
- :name: common_spaces
- :name: Common spaces
:type: webp
:width: 560
:height: 300
:created_at: 2022-12-11 16:44:40.753136245 +02:00
:size: 21
:id: 4
- :name: conferences
- :name: Conferences
:type: webp
:width: 1740
:height: 920
:created_at: 2022-12-11 16:44:40.754136236 +02:00
:size: 125
:id: 7
- :name: coworking_office
- :name: Coworking office
:type: webp
:width: 1740
:height: 884
:created_at: 2022-12-11 16:44:40.755136227 +02:00
:size: 135
:id: 8
- :name: en_suite_studio
- :name: En suite studio
:type: webp
:width: 560
:height: 300
:created_at: 2022-12-11 16:44:40.756136218 +02:00
:size: 13
:id: 12
- :name: house
- :name: House
:type: jpg
:width: 1314
:height: 433
:created_at: 2022-12-11 16:44:40.759136191 +02:00
:size: 260
:id: 16
- :name: large
- :name: Large
:type: webp
:width: 1730
:height: 1032
:created_at: 2022-12-07 16:04:22.141547518 +02:00
:size: 211
:id: 17
- :name: makerspace
- :name: Makerspace
:type: webp
:width: 1059
:height: 526
:created_at: 2022-12-11 16:44:40.760136182 +02:00
:size: 98
:id: 20
- :name: non_standard_room
- :name: Non standard room
:type: webp
:width: 865
:height: 501
:created_at: 2022-12-11 16:44:40.766136129 +02:00
:size: 40
:id: 25
- :name: residency_accomodation
- :name: Residency accomodation
:type: webp
:width: 1740
:height: 992
:created_at: 2022-12-11 16:44:40.767136120 +02:00
:size: 129
:id: 26
- :name: retreats
- :name: Retreats
:type: jpg
:width: 1044
:height: 500
:created_at: 2022-12-11 16:44:40.767136120 +02:00
:size: 245
:id: 27
- :name: service_boutique
- :name: Service boutique
:type: webp
:width: 1000
:height: 536
:created_at: 2022-12-11 16:44:40.769136102 +02:00
:size: 137
:id: 28
- :name: service_cafe
- :name: Service cafe
:type: webp
:width: 1120
:height: 600
:created_at: 2022-12-11 16:44:40.769136102 +02:00
:size: 81
:id: 29
- :name: service_treatments
- :name: Service treatments
:type: webp
:width: 592
:height: 317
:created_at: 2022-12-11 16:44:40.769136102 +02:00
:size: 31
:id: 30
- :name: standard
- :name: Standard
:type: webp
:width: 1730
:height: 1032
:created_at: 2022-12-07 16:04:22.142547509 +02:00
:size: 136
:id: 35
- :name: studio_kitchen
- :name: Studio kitchen
:type: webp
:width: 560
:height: 300
:created_at: 2022-12-11 16:44:40.771136085 +02:00
:size: 19
:id: 36
- :name: studios
- :name: Studios
:type: jpg
:width: 1740
:height: 794
:created_at: 2022-12-11 16:44:40.771136085 +02:00
:size: 372
:id: 37
- :name: wet_space_room
- :name: Wet space room
:type: webp
:width: 865
:height: 501