Url not path
This commit is contained in:
parent
ef7b9f58a7
commit
a222edc646
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue