File.open("#{trac_fullpath}", 'rb').read
end
+ def description
+ read_attribute(:description).to_s.slice(0,255)
+ end
+
private
def trac_fullpath
attachment_type = read_attribute(:type)
a.file = attachment
a.author = find_or_create_user(attachment.author)
a.container = i
+ a.description = attachment.description
migrated_ticket_attachments += 1 if a.save
end
a = Attachment.new :created_on => attachment.time
a.file = attachment
a.author = find_or_create_user(attachment.author)
+ a.description = attachment.description
a.container = p
migrated_wiki_attachments += 1 if a.save
end