Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Index: app/filters/url_filters.rb
  2. ===================================================================
  3. --- app/filters/url_filters.rb (revision 2334)
  4. +++ app/filters/url_filters.rb (working copy)
  5. @@ -5,11 +5,11 @@
  6. include ActionView::Helpers::AssetTagHelper
  7.  
  8. def link_to_article(article, text = nil)
  9. - content_tag :a, h(text || article['title']), :href => article['url']
  10. + content_tag :a, (text || h(article['title'])), :href => article['url']
  11. end
  12.  
  13. def link_to_page(page, section = nil, text = nil)
  14. - content_tag :a, h(text || page['title']), page_anchor_options(page, section)
  15. + content_tag :a, (text || h(page['title'])), page_anchor_options(page, section)
  16. end
  17.  
  18. def link_to_comments(article)
  19. @@ -17,7 +17,7 @@
  20. end
  21.  
  22. def link_to_section(section, text = nil)
  23. - content_tag :a, h(text || section['name']), :href => section['url'], :title => section['title']
  24. + content_tag :a, (text || h(section['name'])), :href => section['url'], :title => section['title']
  25. end
  26.  
  27. def img_tag(img, options = {})
Add Comment
Please, Sign In to add comment