diff app/models/attachment.rb @ 1051:ef882e222003 bibplugin_bibtex

Changing the way the bibtex is parsed: uses link_to_remote instead of remote_form_for; using RJS; created tab helper (still not implemented correctly in terms of views
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 16 Nov 2012 19:05:01 +0000
parents cbb26bc654de
children
line wrap: on
line diff
--- a/app/models/attachment.rb	Tue Nov 13 18:12:46 2012 +0000
+++ b/app/models/attachment.rb	Fri Nov 16 19:05:01 2012 +0000
@@ -69,7 +69,7 @@
       end
     end
   end
-	
+
   def file
     nil
   end
@@ -168,7 +168,7 @@
   end
 
   def self.latest_attach(attachments, filename)
-    attachments.sort_by(&:created_on).reverse.detect { 
+    attachments.sort_by(&:created_on).reverse.detect {
       |att| att.filename.downcase == filename.downcase
      }
   end