capitalize image names
This commit is contained in:
parent
430de769ee
commit
9841ee03e8
@ -84,7 +84,10 @@ module Merged
|
|||||||
|
|
||||||
def self.transform
|
def self.transform
|
||||||
Image.all.each do |image|
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,117 +1,117 @@
|
|||||||
---
|
---
|
||||||
- :name: common_spaces
|
- :name: Common spaces
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 560
|
:width: 560
|
||||||
:height: 300
|
:height: 300
|
||||||
:created_at: 2022-12-11 16:44:40.753136245 +02:00
|
:created_at: 2022-12-11 16:44:40.753136245 +02:00
|
||||||
:size: 21
|
:size: 21
|
||||||
:id: 4
|
:id: 4
|
||||||
- :name: conferences
|
- :name: Conferences
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1740
|
:width: 1740
|
||||||
:height: 920
|
:height: 920
|
||||||
:created_at: 2022-12-11 16:44:40.754136236 +02:00
|
:created_at: 2022-12-11 16:44:40.754136236 +02:00
|
||||||
:size: 125
|
:size: 125
|
||||||
:id: 7
|
:id: 7
|
||||||
- :name: coworking_office
|
- :name: Coworking office
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1740
|
:width: 1740
|
||||||
:height: 884
|
:height: 884
|
||||||
:created_at: 2022-12-11 16:44:40.755136227 +02:00
|
:created_at: 2022-12-11 16:44:40.755136227 +02:00
|
||||||
:size: 135
|
:size: 135
|
||||||
:id: 8
|
:id: 8
|
||||||
- :name: en_suite_studio
|
- :name: En suite studio
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 560
|
:width: 560
|
||||||
:height: 300
|
:height: 300
|
||||||
:created_at: 2022-12-11 16:44:40.756136218 +02:00
|
:created_at: 2022-12-11 16:44:40.756136218 +02:00
|
||||||
:size: 13
|
:size: 13
|
||||||
:id: 12
|
:id: 12
|
||||||
- :name: house
|
- :name: House
|
||||||
:type: jpg
|
:type: jpg
|
||||||
:width: 1314
|
:width: 1314
|
||||||
:height: 433
|
:height: 433
|
||||||
:created_at: 2022-12-11 16:44:40.759136191 +02:00
|
:created_at: 2022-12-11 16:44:40.759136191 +02:00
|
||||||
:size: 260
|
:size: 260
|
||||||
:id: 16
|
:id: 16
|
||||||
- :name: large
|
- :name: Large
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1730
|
:width: 1730
|
||||||
:height: 1032
|
:height: 1032
|
||||||
:created_at: 2022-12-07 16:04:22.141547518 +02:00
|
:created_at: 2022-12-07 16:04:22.141547518 +02:00
|
||||||
:size: 211
|
:size: 211
|
||||||
:id: 17
|
:id: 17
|
||||||
- :name: makerspace
|
- :name: Makerspace
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1059
|
:width: 1059
|
||||||
:height: 526
|
:height: 526
|
||||||
:created_at: 2022-12-11 16:44:40.760136182 +02:00
|
:created_at: 2022-12-11 16:44:40.760136182 +02:00
|
||||||
:size: 98
|
:size: 98
|
||||||
:id: 20
|
:id: 20
|
||||||
- :name: non_standard_room
|
- :name: Non standard room
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 865
|
:width: 865
|
||||||
:height: 501
|
:height: 501
|
||||||
:created_at: 2022-12-11 16:44:40.766136129 +02:00
|
:created_at: 2022-12-11 16:44:40.766136129 +02:00
|
||||||
:size: 40
|
:size: 40
|
||||||
:id: 25
|
:id: 25
|
||||||
- :name: residency_accomodation
|
- :name: Residency accomodation
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1740
|
:width: 1740
|
||||||
:height: 992
|
:height: 992
|
||||||
:created_at: 2022-12-11 16:44:40.767136120 +02:00
|
:created_at: 2022-12-11 16:44:40.767136120 +02:00
|
||||||
:size: 129
|
:size: 129
|
||||||
:id: 26
|
:id: 26
|
||||||
- :name: retreats
|
- :name: Retreats
|
||||||
:type: jpg
|
:type: jpg
|
||||||
:width: 1044
|
:width: 1044
|
||||||
:height: 500
|
:height: 500
|
||||||
:created_at: 2022-12-11 16:44:40.767136120 +02:00
|
:created_at: 2022-12-11 16:44:40.767136120 +02:00
|
||||||
:size: 245
|
:size: 245
|
||||||
:id: 27
|
:id: 27
|
||||||
- :name: service_boutique
|
- :name: Service boutique
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1000
|
:width: 1000
|
||||||
:height: 536
|
:height: 536
|
||||||
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
||||||
:size: 137
|
:size: 137
|
||||||
:id: 28
|
:id: 28
|
||||||
- :name: service_cafe
|
- :name: Service cafe
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1120
|
:width: 1120
|
||||||
:height: 600
|
:height: 600
|
||||||
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
||||||
:size: 81
|
:size: 81
|
||||||
:id: 29
|
:id: 29
|
||||||
- :name: service_treatments
|
- :name: Service treatments
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 592
|
:width: 592
|
||||||
:height: 317
|
:height: 317
|
||||||
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
:created_at: 2022-12-11 16:44:40.769136102 +02:00
|
||||||
:size: 31
|
:size: 31
|
||||||
:id: 30
|
:id: 30
|
||||||
- :name: standard
|
- :name: Standard
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 1730
|
:width: 1730
|
||||||
:height: 1032
|
:height: 1032
|
||||||
:created_at: 2022-12-07 16:04:22.142547509 +02:00
|
:created_at: 2022-12-07 16:04:22.142547509 +02:00
|
||||||
:size: 136
|
:size: 136
|
||||||
:id: 35
|
:id: 35
|
||||||
- :name: studio_kitchen
|
- :name: Studio kitchen
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 560
|
:width: 560
|
||||||
:height: 300
|
:height: 300
|
||||||
:created_at: 2022-12-11 16:44:40.771136085 +02:00
|
:created_at: 2022-12-11 16:44:40.771136085 +02:00
|
||||||
:size: 19
|
:size: 19
|
||||||
:id: 36
|
:id: 36
|
||||||
- :name: studios
|
- :name: Studios
|
||||||
:type: jpg
|
:type: jpg
|
||||||
:width: 1740
|
:width: 1740
|
||||||
:height: 794
|
:height: 794
|
||||||
:created_at: 2022-12-11 16:44:40.771136085 +02:00
|
:created_at: 2022-12-11 16:44:40.771136085 +02:00
|
||||||
:size: 372
|
:size: 372
|
||||||
:id: 37
|
:id: 37
|
||||||
- :name: wet_space_room
|
- :name: Wet space room
|
||||||
:type: webp
|
:type: webp
|
||||||
:width: 865
|
:width: 865
|
||||||
:height: 501
|
:height: 501
|
||||||
|
Loading…
Reference in New Issue
Block a user