Url not path

This commit is contained in:
ilya 2010-07-21 20:22:30 -07:00
parent ef7b9f58a7
commit a222edc646

View file

@ -7,13 +7,16 @@ class Photo < Post
xml_reader :album_id
key :album_id, ObjectId
belongs_to :album, :class_name => 'Album'
timestamps!
validates_presence_of :album
def remote_photo
image.path
User.first.url.chop + image.path
end
def remote_photo= remote_path