fix syntax error

This commit is contained in:
maxwell 2011-03-18 18:15:57 -07:00
parent 358fdb9521
commit 91a96adb4b

View file

@ -68,7 +68,7 @@ class Photo < Post
def url(name = nil)
if self.image.path.include? '.gif'
image.url
if remote_photo_path
elsif remote_photo_path
name = name.to_s + '_' if name
remote_photo_path + name.to_s + remote_photo_name
else