lib/tabulatr/tabulatr/paginator.rb in tabulatr-0.1.3 vs lib/tabulatr/tabulatr/paginator.rb in tabulatr-0.2.0

- old
+ new

@@ -25,10 +25,10 @@ #render the paginator controls, inputs etc. def render_paginator # get the current pagination state pagination_name = "#{@classname}#{TABLE_FORM_OPTIONS[:pagination_postfix]}" - pparams = @records.send(FINDER_INJECT_OPTIONS[:pagination]) + pparams = @records.__pagination page = pparams[:page].to_i pages = pparams[:pages].to_i pagesize = pparams[:pagesize].to_i pagesizes = pparams[:pagesizes].map &:to_i # render the 'wrapping' div \ No newline at end of file