Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Massimo Zappino
Added: Jun 28, 2018 2:06 PM
Modified: Jul 4, 2018 7:15 PM
Views: 8
  1. require 'will_paginate/view_helpers/action_view'
  2.  
  3. class PaginationNoFollow < WillPaginate::ActionView::BootstrapLinkRenderer
  4.   def rel_value(page)
  5.     [super, 'nofollow'].compact.join(' ')
  6.   end
  7. end