if string
This commit is contained in:
parent
da3e38a8bd
commit
323f6aa836
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class Photo < ActiveRecord::Base
|
|||
self.latitude = photo.GPSLatitude if self.latitude.nil?
|
||||
self.title = photo.DocumentName if self.title.nil?
|
||||
self.description = photo.ImageDescription if self.description.nil?
|
||||
self.tag_list = (self.tags.empty? ? "" : self.album.tag_list) + " " + (photo.Keywords.nil? ? "" : photo.Keywords.map { |tag| tag.gsub(" ", "_") }.join(" "))
|
||||
self.tag_list = (self.tags.empty? ? "" : self.album.tag_list) + " " + (photo.Keywords.nil? ? "" : photo.Keywords.to_a.map { |tag| tag.gsub(" ", "_") }.join(" "))
|
||||
end
|
||||
|
||||
def exif_write
|
||||
|
|
Loading…
Reference in a new issue