Sha256: d941be2ae66369abacf62666b4a9a3b70d0d3e52dc5dfefa34686e934026c4a6
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
if Msip.paginador && Msip.paginador == :will_paginate require 'will_paginate/view_helpers/action_view' end module Msip module PaginacionAjaxHelper if Msip.paginador && Msip.paginador == :will_paginate # SoluciĆ³n adaptada de https://gist.github.com/jeroenr/3142686 class GeneraEnlace < WillPaginate::ActionView::LinkRenderer def link(text, target, attributes = {}) attributes['data-remote'] = true super end end def pagina(collection, params={}) will_paginate collection, params.merge( renderer: Msip::PaginacionAjaxHelper::GeneraEnlace) end end # if :will_paginate end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | app/helpers/msip/paginacion_ajax_helper.rb |
msip-2.2.0.alfa2 | app/helpers/msip/paginacion_ajax_helper.rb |
msip-2.2a2 | app/helpers/msip/paginacion_ajax_helper.rb |