fixes by houndci
This commit is contained in:
parent
1f3e9a39c8
commit
07ac2baa68
1 changed files with 9 additions and 7 deletions
|
|
@ -17,14 +17,16 @@ class EventAttachment < ActiveRecord::Base
|
||||||
|
|
||||||
def to_jq_upload
|
def to_jq_upload
|
||||||
{
|
{
|
||||||
"name" => read_attribute(:attachment_file_name),
|
'name' => read_attribute(:attachment_file_name),
|
||||||
"size" => read_attribute(:attachment_file_size),
|
'size' => read_attribute(:attachment_file_size),
|
||||||
"title" => read_attribute(:title),
|
'title' => read_attribute(:title),
|
||||||
"public" => read_attribute(:public),
|
'public' => read_attribute(:public),
|
||||||
#"url" => attachment.url(:original),
|
#"url" => attachment.url(:original),
|
||||||
"url" => conference_proposal_event_attachment_path(self.event.conference.short_title, self.event_id, self.id),
|
'url' => conference_proposal_event_attachment_path(
|
||||||
"delete_url" => conference_proposal_event_attachment_path(self.event.conference.short_title, self.event_id, self.id),
|
self.event.conference.short_title, self.event_id, self.id),
|
||||||
"delete_type" => "DELETE"
|
'delete_url' => conference_proposal_event_attachment_path(
|
||||||
|
self.event.conference.short_title, self.event_id, self.id),
|
||||||
|
'delete_type' => "DELETE"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
#:path => ":rails_root/public/system/:attachment/:id/:style/:filename",
|
#:path => ":rails_root/public/system/:attachment/:id/:style/:filename",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue