This commit is contained in:
Thomas Blazek
2013-08-22 11:51:57 +02:00
parent 5aca5eca1c
commit 9b2db870bc
4 changed files with 12 additions and 9 deletions

View File

@@ -8,11 +8,10 @@ class Foto < ActiveRecord::Base
"id" => read_attribute(:id),
"title" => read_attribute(:title),
"description" => read_attribute(:desc),
"name" => read_attribute(:file),
"size" => file.size,
"url" => file.url,
"thumbnail_url" => file.thumb.url,
"delete_url" => foto_path(:id => id),
"name" => read_attribute(:datei),
"size" => datei.size,
"url" => datei.url,
"thumbnail_url" => datei.thumb.url,
"delete_type" => "DELETE"
}
end