espen / balder

Balder - Open source Ruby on Rails photo gallery
http://balderapp.com
MIT License
263 stars 97 forks source link

Reading Keywords from exif will break if there is a single tag in the image in 1.9 #35

Open fsroque opened 11 years ago

fsroque commented 11 years ago

String does no longer have a to_a method, so photo.Keywords.to_a breaks for single tagged images. The solution was to use the Kernel#Array method in app/models/photo.rb:70

espen commented 11 years ago

photo.Keywords.split(", ") should work if I recall the format correctly ("tag1, tag2")