myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3486] trunk/app/helpers/application_helper.rb: F


From: noreply
Subject: [myexperiment-hackers] [3486] trunk/app/helpers/application_helper.rb: Fixed issue to do with highlighting search results in 1.9.2
Date: Mon, 25 Mar 2013 15:23:55 +0000 (UTC)

Revision
3486
Author
fbacall
Date
2013-03-25 15:23:54 +0000 (Mon, 25 Mar 2013)

Log Message

Fixed issue to do with highlighting search results in 1.9.2

Modified Paths

Diff

Modified: trunk/app/helpers/application_helper.rb (3485 => 3486)


--- trunk/app/helpers/application_helper.rb	2013-03-25 13:52:42 UTC (rev 3485)
+++ trunk/app/helpers/application_helper.rb	2013-03-25 15:23:54 UTC (rev 3486)
@@ -802,13 +802,7 @@
   end
 
   def highlight_all(text, string)
-    rtn = text
-    
-    string.each(separator=" ") { |substr|
-      rtn = highlight(text, substr)
-    }
-    
-    return rtn
+    highlight(text, string.split(' '))
   end
   
   def workflows_for_attribution_form

reply via email to

[Prev in Thread] Current Thread [Next in Thread]