rails/actionview/lib
Lucas Mazza 9f27e1076a 'TextHelper#highlight' now accepts a block to highlight the matched words.
The helper will yield each matched word, and you can use this instead of the
':highlighter' option for more complex replacing logic:

  highlight('My email is me@work.com', EMAIL_REGEXP) { |m| mail_to(m) }
  # => 'My email is <a href="mailto:me@work.com">me@work.com</a>'
2014-06-19 15:22:23 -03:00
..
action_view 'TextHelper#highlight' now accepts a block to highlight the matched words. 2014-06-19 15:22:23 -03:00
action_view.rb just require the template resolver 2014-01-31 12:05:50 -08:00