Method: PaginationHelper::Paginator::Window#initialize
- Defined in:
- app/helpers/pagination_helper.rb
#initialize(page, padding = 2) ⇒ Window
Creates a new Window object for the given page with the specified padding.
454 455 456 457 458 |
# File 'app/helpers/pagination_helper.rb', line 454 def initialize(page, padding=2) @paginator = page.paginator @page = page self.padding = padding end |