From 07ac2baa68c326b2e2bcbda4c2f64116fcd45296 Mon Sep 17 00:00:00 2001 From: Gopesh Tulsyan Date: Fri, 16 May 2014 12:44:41 +0530 Subject: [PATCH] fixes by houndci --- app/models/event_attachment.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/models/event_attachment.rb b/app/models/event_attachment.rb index e584a4cc..5a30d817 100644 --- a/app/models/event_attachment.rb +++ b/app/models/event_attachment.rb @@ -17,14 +17,16 @@ class EventAttachment < ActiveRecord::Base def to_jq_upload { - "name" => read_attribute(:attachment_file_name), - "size" => read_attribute(:attachment_file_size), - "title" => read_attribute(:title), - "public" => read_attribute(:public), + 'name' => read_attribute(:attachment_file_name), + 'size' => read_attribute(:attachment_file_size), + 'title' => read_attribute(:title), + 'public' => read_attribute(:public), #"url" => attachment.url(:original), - "url" => conference_proposal_event_attachment_path(self.event.conference.short_title, self.event_id, self.id), - "delete_url" => conference_proposal_event_attachment_path(self.event.conference.short_title, self.event_id, self.id), - "delete_type" => "DELETE" + 'url' => conference_proposal_event_attachment_path( + self.event.conference.short_title, self.event_id, self.id), + 'delete_url' => conference_proposal_event_attachment_path( + self.event.conference.short_title, self.event_id, self.id), + 'delete_type' => "DELETE" } end #:path => ":rails_root/public/system/:attachment/:id/:style/:filename",